[CLUG-tech] Preventing HTML page caching
charles at finebushpeople.co.za
Mon Nov 18 11:02:43 SAST 2002
The instructions you put as meta tags in the HTML header block will only
affect the browser, not a proxy server. To control caching in devices that
do not read the HTML you need to put directives into the http header.
There is a brilliant guide to this with info about building a cache-aware
website at WDVL (web developers virtual library).
(And yes, my customers with IE often complain that even if they click
'refresh' they still don't see changes to the website that I have posted.)
On Monday 18 November 2002 09:50 am, Tom Coetser wrote:
> Hi all,
> I'm using the following two headers on a web site to prevent browsers from
> caching the pages:
> <meta http-equiv="Cache-Control" content="no-cache">
> <meta http-equiv="Pragma" content="no-cache">
> This seems to work with most browsers but some IE browsers are still using
> cached data from older pages on occasion. Is the above enough to prevent
> caching of an HTML page, am I even using it correctly, is there anything
> else I can do, is IE the problem (<grin>)?
> Also, how would the no-cache directives above play with proxy servers?
> I am at the moment investigating this further in trying to identify exactly
> which IE versions this happens with and also trying to make some sense of
> which RCFs have anything to say about page caching. Reading and
> understanding RFCs is not one of my favorite passtimes, so any help would
> be appreciated.
More information about the Clug-tech