Re: Caching problem

From: Date: Fri, 19 May 2000 20:00:12 +0000
Subject: Re: Caching problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223@lists.php.net to get a copy of this message
At 08:53 PM 5/19/00 +0100, Adam Charnock wrote:
Well, i'm doing quite well with the scripts (thanx y'all). Just one more thing for now, I am getting a problem I sometimes got with my Perl scripts, the browser caches original output and just keeps showing that when I press refresh. Is there wither some code to stop the browser caching the page or a way to configure apache so that it does not allow the user to cache .php3 files?
I usually append the following headers to files that I do not want cached. $TIME = TIME(); HEADER( 'Pragma: no-cache' ); HEADER( 'Expires: ' . GMDATE('D, d M Y H:i:s', ($TIME - 604800)) . ' GMT' ); HEADER( 'Last-Modified: ' . GMDATE('D, d M Y H:i:s', ($TIME - 150)) . ' GMT' ); HEADER( 'Cache-Control: no-cache, must-revalidate' ); HTH, Zak

« previous php.general (#223) next »