March 24th, 2000, 04:05 PM
I can't seem to get any browser to stop caching things.
I've tried it with the following PHP.
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache"); ?>
and with the following HTML
<META http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT">
And It just keeps caching.
Does anyone know how to make a browser not cache your content.
I usually don't get frustrated but this is making me go bald.
March 28th, 2000, 09:10 AM
If it is not the start page of your site you can use some header info to make the browser load the document every time.
You can use the current time in miliseconds from 1970 for instance. Since this makes a different URL every milisecond the browser does not take the document out of the cache.
It looks a little like this:
The problem is that when someone enters the page from a bookmark or search engine, the document can still come from the cache. And it is not useful to do this when the document is the starting page. Although you could use some meta refresh function to accomplish the same thing. Anyhow you get the idea!
Boradoli Web Design