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/22.214.171.124a mod_auth_passthrough/1.6 mod_log_bytes/1.2 mod_bwlimited/1.0 FrontPage/126.96.36.19934 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b
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
Keep-Alive: timeout=15, max=100
What's up with the Cache-Control headers telling the browser not to store or cache the pages? And that 1981 expiration date will pretty much mean that *everything* refreshes from the server every time, which defeats the purpose of using mod_gzip to begin with.
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.