Answer the question
In order to leave comments, you need to log in
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
Between tags
<head>
<meta http-equiv="Pragma" content="no-cache" />
</head>
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>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question