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

From: Henrik Nordstrom <[email protected]>
Date: 12 Feb 2003 18:59:32 +0100

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 <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Wed Feb 12 2003 - 10:59:40 MST

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