Is there a way to disable browser cache for a single page?

Add current timestamp as parameter of url, e. G server.com/index.php?timestamp=125656789.

Add current timestamp as parameter of url, e.g. server.com/index.php?timestamp=125656789.

This is the best answer since older browsers (i am looking at you IE) don't follow the no-cache header in some situations. – Byron Whitlock Sep 25 '09 at 20:26 Do this on the link? What about regular page refreshes?

– Nathan Long Sep 25 '09 at 20:32 1 Redirect browser to new timestamp, if timestamp passed by param is too old. – Anatoliy Sep 25 '09 at 20:49.

You should send the following header: Cache-control: no-cache in the HTTP response.

I did this, using Craig Treptow's code suggestion, but no dice. I edited the question to show the headers. – Nathan Long Sep 25 '09 at 20:45.

I think this tells you what you want: thesitewizard.com/archive/phptutorial2.s... Look for "Preventing the Browser From Caching" header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" ); header( "Last-Modified: " . Gmdate("D, d M Y H:i:s") . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ).

Thanks for this. So far no change, though. I edited my question to show the response headers I'm getting.

– Nathan Long Sep 25 '09 at 20:46.

You could add these headers: Cache-Control: no-cache And (for backward compatibility with HTTP/1.0 clients) Pragma: no-cache.

Here's another take that isn't PHP specific. Try this in your section: Found that at the end of a long thread here: forums.mozillazine.org/viewtopic.php?f=2....

HTML Meta Tags vs. HTTP Headers: mnot. Net/cache_docs/#META – Pascal Thivent Sep 25 '09 at 21:19 Great info, thanks Pascal! – Craig Treptow Sep 28 '09 at 13:05.

Use the header() function. You have to set a few to cover all browsers; see php.net/manual/en/function.header.php#75507.

For a small intranet site, I have a dynamic (includes AJAX) page that is being cached incorrectly by Firefox. Is there a way to disable browser caching for a single page? The content that I'm primarily concerned about is page text and the default options in some s.

So I can't just add random numbers to the end of some image URLs, for example. Now Firebug shows that the headers specify no cache, but the problem persists.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions