D
D
Denis Prikhodko2013-12-06 03:54:41
HTML
Denis Prikhodko, 2013-12-06 03:54:41

How to clear the cache using tags?

Good afternoon. Is there a tag to tell the browser to clear the cache?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Q
Quber, 2013-12-06
@HonesTks

Between tags

<head>
<meta http-equiv="Pragma" content="no-cache" />
</head>

Read more here

D
Dmitry, 2013-12-06
@omun

I didn't fully understand your intentions. Do you want the cache to be cleared based on the presence of a special tag on the page? It looks at least strange.
The standard practice for ignoring the cache is to append the revision number (in production) or timestamp (in dev) to the file.
for example

<script src="js/myscript.js?3528"></script>
<script src="js/myscript.js?1386293952"></script>

G
GreatRash, 2013-12-06
@GreatRash

You can't clear the cache without reloading the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question