Please enabele log_mime_hdrs in the native Squid log format and then
send two requests

1. The initial TCP_MISS/200 which should have caused the response to get
cached.

2. The second TCP_MISS/200 from Mozilla which you thing should have been
a cache hit..


Regards
Henrik


ons 2003-02-12 klockan 16.11 skrev Alberto Mesas Navarro:
> 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
-- 
Henrik Nordstrom <[EMAIL PROTECTED]>
MARA Systems AB, Sweden

Reply via email to