Re: cache control at client

From: Date: Thu, 12 Apr 2007 22:36:34 +0000
Subject: Re: cache control at client
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-27682@lists.php.net to get a copy of this message
Alf I had a similar problem trying to expire pages so that the user received a "Page Expired" message when they clicked on the back button. I discovered that if you set Cache-control to no-cache then Firefox/IE ignore the expires date. The solution that I got working on IE7 was to set Cache-control to must-revalidate and Expires to 1 second into the future. Firefox still didn't do what I wanted and I didn't test IE6. Rich PS: I was doing this through HTTP headers. On Thu, 2007-04-12 at 13:57 +0200, Alf Stockton wrote: > I have set:- > <meta http-equiv="cache-control" content="no-cache"> > <meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" > in the header are of all my pages but still until the user does a reload > in both IE & Firefox they do not see the new screen. > Please tell me what else I can do to force the browser to not cache > anything ever. > I am not in a position of altering the client browser settings despite > this being an intranet system. > > -- > Regards, > Alf Stockton www.stockton.co.za > > Q: What's yellow, and equivalent to the Axiom of Choice? > A: Zorn's Lemon. > My email disclaimer is available at www.stockton.co.za/disclaimer.html > -- Rich Buggy rich@buggy.id.au http://www.buggy.id.au/

« previous php.windows (#27682) next »