[squid-users] If-Modified-Since - Mozilla/Galeon/etc...

From: Alberto Mesas Navarro <amesas@dont-contact.us>
Date: 12 Feb 2003 16:11:54 +0100

Hi, first of all thnx in advance for your help and sorry for my lame
english :)

I have an squid running in front of some apache servers.
The mission of the squid server is just to save some CPU usage to my
database servers, apache is serving php files that send the next
headers:

header("Expires: " . $exp_gmt);
header("Last-Modified: " . $mod_gmt);
header("Cache-Control: public");
header("Cache-Control: max-age=" . $this->allowcache_expire * 60);

All works ok for Internet Explorer, if I set a cache time of 120
seconds, I get the same page for 120 seconds, but if I request the page
from a Mozilla based browser I always get a refreshed page.

I have seen that Mozilla send a If-Modified-Since header, and I think
that's the cause, how can I prevent Squid to refresh the page until the
desired time has passed?

Thnx

-- 
Alberto Mesas Navarro <amesas@prisacom.com>
Received on Wed Feb 12 2003 - 08:12:58 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:21 MST