Cache Control...

From: Date: Wed, 30 Apr 2003 13:51:27 +0000
Subject: Cache Control...
Groups: php.general 
Request: Send a blank email to php-general+get-145773@lists.php.net to get a copy of this message
Alright, I use the header script for cache control and it is working but it didn't do what I expect it to do. The script I use is .... --clip-- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); --clip-- Problem is when I use the back button or forward button, the browser would then request a fresh webpage from the server. Is there a way that I can make the webpage showed up as expried when using the back button or forward button? Is there also a way where the browsers won't be prompt for a refresh or something? Thanks, FletchSOD P.S. I looked up in the documentation about 'session_cache_limiter' and set it to nocache but it doesn't work for some webpages. Any advice would be appreciated...

« previous php.general (#145773) next »