Reputation: 3755
I have a basic HTML page, no dynamic content. Occassional updates done manually. However, I am having reports that people are seeing old versions of the page. I thought I had all "no caching" headers setup on my page, under the <head>
section of the html document.
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
<meta http-equiv="EXPIRES" content="0" />
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
Any idea what else I can do to force client-side refresh? The site is being service by apache.
UPDATE So, it turns out this was really just user error. The person experiencing these problems was looking for updates on a.domain.com, but had instructed me to make the changes on b.domain.com. So they were, simply, looking in the wrong place. I did learn some things about caching though, while trying to figure out the problem!
Upvotes: 1
Views: 1281
Reputation: 12356
It may be proxies that cache the content. Trying to prevent cache in the HTML headers may not prevent all caching. Using HTTP header expiration should help.
You can use mod_expires and mod_headers to disable caching...
http://www.electrictoolbox.com/apache-mod-expires-browser-caching/
http://www.helicontech.com/ape/doc/mod_headers.htm
Upvotes: 1
Reputation: 12814
The users' browser may have it's own cache settings. As well, the server sending your HTML file may be adding it's own cache-control headers, etc. There are many layers and things that can interact or over-ride each-other when it comes to static caching.
Upvotes: 1