Apache sending Pragma: no-cache directive
Hi,I've just set up a LAMP box (Linux, Apache, mySQL, PHP, etc.) and I'm having a problem with Apache sending no-cache headers.
I checked my PHP code and I'm not sending out *any* headers or meta-tags to control caching. On my old server with a similar setup I didn't have the problem.
I used Mozilla's "Live Headers" extension to capture the headers:
HTTP/1.x 200 OK
Date: Wed, 20 Aug 2003 04:40:08 GMT
Server: Apache/1.3.28 (Unix) PHP/4.3.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.6 mod_log_bytes/1.2 mod_bwlimited/1.0 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b
Vary: Accept-Encoding
X-Powered-By: PHP/4.3.2
Set-Cookie: PHPSESSID=[some id]; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
Content-Encoding: gzip
Date: Wed, 20 Aug 2003 04:40:08 GMT
Server: Apache/1.3.28 (Unix) PHP/4.3.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.6 mod_log_bytes/1.2 mod_bwlimited/1.0 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b
Vary: Accept-Encoding
X-Powered-By: PHP/4.3.2
Set-Cookie: PHPSESSID=[some id]; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
Content-Encoding: gzip
I've tried looking through my httpd.conf file for anything having to do with Caching and there's nothing there. Is this something that's controlled by PHP, or is there some conflict with one of the Apache modules, like mod_gzip or something else?
It's driving me crazy.