Re: Why my php pages are cached in browsers?

From: Date: Wed, 25 Sep 2002 09:21:48 +0000
Subject: Re: Why my php pages are cached in browsers?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-117539@lists.php.net to get a copy of this message
In the german apache Mailinglist somebody wrote some like this: a) aktivate the modul mod_expires.so b) Fill in the lines # enable expirations ExpiresActive On # expire php pages after a minute in the client's cache ExpiresByType text/php A60000 into httpd.conf But I don't really know if it works (:0 Thought about I maybe have to write application/x-httpd-php instead of text/php Please tell me if it works Sascha > > In browsers, my php pages are cached. All the code that is returned by php > > are stored. In version 4.1 this not ocurred, anybody can help me? > > First: Check if you send headers: > header('Pragma: no-cache'); > header('Expires: Thu, 01 Jan 1970 01:00:00 GMT'); > header('Cache-Control: no-cache, must-revalidate, private'); > > Second: If your appache sends "HTTP 1.0" try to change to "HTTP 1.1". > "HTTP 1.0" "do not know" Cache-Control. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#117539) next »