RE: [PHP] Cache problems

From: Date: Thu, 28 Dec 2000 21:19:40 +0000
Subject: RE: [PHP] Cache problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32159@lists.php.net to get a copy of this message
For these: > Last-Modified: Thu, 28 Dec 2000 21:07:44 GMT > Cache-Control: no-cache, must-revalidate > Pragma: no-cache > Expires: 0 Simply put the strings into the header() function like this: header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); header('Expires: 0'); header('Last-Modified: ' . date('your date args')); // see http://php.net/date for how to format your date And, don't take my word on these headers. You should read the HTTP RFC to see all available headers. These aren't necessarily the headers you want to send -- but if you want, then feel free to use them, but I claim to guarantee ;-) Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "<body>" -- Quoted from Yahoo! homepage, http://www.yahoo.com On Thu, 28 Dec 2000, Andree, Tom wrote: > Date: Thu, 28 Dec 2000 16:13:37 -0500 > From: "Andree, Tom" <TDANDREE@HealthPlan.com> > To: 'jeremy brand' <jeremy@nirvani.net> > Subject: RE: [PHP] Cache problems > > What exactly would your code look like in PHP? I have tried doing something > similar to what your saying but it doesn't seem to have an affect. > > -----Original Message----- > From: jeremy brand [mailto:jeremy@nirvani.net] > Sent: Thursday, December 28, 2000 4:10 PM > To: Andree, Tom > Cc: 'php-general@lists.php.net' > Subject: Re: [PHP] Cache problems > > > Well, you could send some HTTP headers. > > See the HTTP RFC for a list of headers you might want to send, but > something like this might be what you want. > > Last-Modified: Thu, 28 Dec 2000 21:07:44 GMT > Cache-Control: no-cache, must-revalidate > Pragma: no-cache > Expires: 0 > > Where Last-Modified is the current time -- or something else that may > tell the browser not to cache. > > However, ultimately, it is up to the browser to listen and interpret > correctly what you have told it to do. > > Jeremy > > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for > more > Get your own Free, Private email at http://www.smackdown.com/ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > "<body>" -- Quoted from Yahoo! homepage, > http://www.yahoo.com > > On Thu, 28 Dec 2000, Andree, Tom wrote: > > > Date: Thu, 28 Dec 2000 16:03:33 -0500 > > From: "Andree, Tom" <TDANDREE@HealthPlan.com> > > To: "'php-general@lists.php.net'" <php-general@lists.php.net> > > Subject: [PHP] Cache problems > > > > Does anyone know how to turn off caching for a particular page that > > generates dynamic HTML when you have configured PHP to cache? > > > > Tom Andree > > > > > The information contained in this transmission is legally privileged > > > and confidential information intended only for the use of the individual > > > or entity named above. If the reader of this message is not the > intended > > > recipient, you are hereby notified that any dissemination, distribution, > > > or copy of this transmission is strictly prohibited. If you have > received > > > this transmission in error, please contact the sender immediately. > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32159) next »