Re: Internet Explorer Caching

From: Date: Wed, 29 Aug 2007 19:14:53 +0000
Subject: Re: Internet Explorer Caching
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-261497@lists.php.net to get a copy of this message
I had used something similar in another iteration of trying to fix the caching problem in IE. I tried these lines again, and they don't work. It is only IE that is caching. Charlene Satyam wrote:
I'm sending these headers:
      header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
      header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
I don't remember where I took them from, but they are working fine for me. Satyam ----- Original Message ----- From: "Richard Heyes" <richardh@phpguru.org> To: "Charlene" <cwemagazines@charter.net> Cc: <php-general@lists.php.net> Sent: Wednesday, August 29, 2007 5:50 PM Subject: Re: [PHP] Internet Explorer Caching
Charlene wrote:
I've been having problems with Internet Explorer caching php programs. I'm using the following code:
       header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
       header("Pragma", "no-cache");
       header("Expires", "-1");
And it used to work, but now, according to Windows Explorer its giving it 3 hours to expire.
Are you sure? By default PHP pages/scripts don't send any caching headers and hence don't get cached. You can check this using: http://www.fiddlertool.com -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date: 28/08/2007 16:29


« previous php.general (#261497) next »