Re: Re[2]: [PHP-DEV] hi, guys, How can I disable IE5 to cache and store my certain page?

From: Date: Tue, 20 Jun 2000 00:29:36 +0000
Subject: Re: Re[2]: [PHP-DEV] hi, guys, How can I disable IE5 to cache and store my certain page?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21785@lists.php.net to get a copy of this message
> Man, the problems, > I have put the whole thing below in my code. it still has this problem > in IE5, how can I do now? > > header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past > header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > // always modified > header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 > header ("Pragma: no-cache"); > header ("Cache-Control: no-store"); The surefire way is to add some changing string to the URL. Then IE will never cache it. Or it will, but it will never get a cache hit. ie. <a href="some_file.php?defeatstupidcache=<?echo uniqid()?>">Click here</a> -Rasmus

« previous php.dev (#21785) next »