[squid-users] Why always refresh?

From: howard chen <howachen_at_gmail.com>
Date: Fri, 3 Oct 2008 02:09:59 +0800

Hello,

I have a file common.js file, which is now being cached by squid 3, e.g.

Sample response
===============
 Last-Modified[Thu, 11 Oct 2007 05:04:34 GMT]
      Accept-Ranges[bytes]
      Content-Length[27157]
      Content-Type[application/x-javascript]
      Date[Thu, 02 Oct 2008 17:54:30 GMT]
      Expires[Sun, 12 Oct 2008 17:54:30 GMT]
      Cache-Control[max-age=864000]
      Age[70]
      Connection[keep-alive]
=======================

I found quite a number of clients [~20%], which don't follow the
expire time, and always looking
for a refresh at each requests, which end up with a number of 304
response in squid log.

E.g.

cat squid-access.log | grep 'common.js' | grep '" 304' | grep
'10.10.10.34' | wc -l => 22

I suppose for default settings, those clients should not contact my
server for IMS request?

So, any things I missed?

Thanks.
Received on Thu Oct 02 2008 - 18:10:05 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 03 2008 - 12:00:01 MDT