Forum Moderators: phranque
We publish a newspaper and change the home page every day. From day one user complained that they visited the site and were presented with an old home page, not necesarely the one they saw last time they visited.
Form another thread I leaned about caching and headers so I cheked and got this:
HTTP/1.1 200 OK
Date: Thu, 27 Nov 2003 20:30:55 GMT
Server: Apache/1.3.29
X-Powered-By: PHP/4.3.2
Cache-Control: max-age=544719
Expires: Thu, 04 Dec 2003 03:49:34 GMT
Connection: close
Content-Type: text/html
Server response time:1 second
[example.com...]
It seems to plainly say that expires in 5 days, right? This inspite of all the headers I placed in the code tellint it not to cache it.
If I check another page in the site I get:
HTTP/1.1 200 OK
Date: Thu, 27 Nov 2003 20:32:16 GMT
Server: Apache/1.3.29
X-Powered-By: PHP/4.3.2
Cache-Control: max-age=-111948
Expires: Wed, 26 Nov 2003 13:26:28 GMT
Connection: close
Content-Type: text/html
Server response time:1 second
[example.com...]
wich to me looks OK.
All pages have the same header code so to me this is an Apache issue, am I wrong?
Where in the Apache configuration should I tell them to look?
Thank you all.
PS: I know I should change my hosting company but right now I need to quickly solve this, then IŽll let them know.....
[edited by: heini at 9:50 pm (utc) on Nov. 27, 2003]
[edit reason] examplified urls, thanks! [/edit]