Forum Moderators: phranque
I had heard their was some type of Meta tag available that would tell the browser to always download a fresh copy of the page, but someone said browsers ignored this tag.
In short, is there any code, meta tag, etc. that I can place on a normal HTML page so that the browser will always dowload a current copy instead of displaying the cache copy?
Fortune Hunter
As far as I know if you use a standard meta refresh you shouldn't have any problems with caching with any decent browser.
standard meta refresh:
<meta http-equiv="refresh" content="600">
Andrew
[edited by: rogerd at 2:40 am (utc) on July 13, 2006]
[edit reason]
[1][edit reason] No links/URLs, please. [/edit] [/edit][/1]
<meta http-equiv="cache-control" content="no-cache">
However, whilst this might work for the page itself, it would have no effect on linked files such as images or iframes. Iframes could use their own meta tags but images would require http headers to be used (I think).
Kaled.
Meta tags are easy to use, but aren’t very effective. That’s because they’re only honored by a few browser caches (which actually read the HTML), not proxy caches (which almost never read the HTML in the document).
Also check out the Cacheability Engine [mnot.net] linked from the same site:
To help you understand how Web Caches will treat a Web page, the Cacheability Engine will look at a URL (and optionally any images or objects associated with it), giving both specific cache-related data about it, and a general commentary on how cacheable the object is.
Fantastic resource, highly recommended :)