[squid-users] Not caching images as long as expected

From: Mark Gibson <mark@dont-contact.us>
Date: Sat, 30 Sep 2006 13:43:49 -0600

Using squid 2.6

I'm trying to get '.gif' files cached. Here's the refresh pattern I
have set up:

refresh_pattern -i
\.(jpg|jpeg|gif|png|tiff|tif|svg|swf|ico|css|js|vsd|doc|ppt|pps|xls|pdf|mp3|mp4|m4a|ogg|mov|avi|wmv|sxw|zip|gz|bz2|tar|rar|odc|odb|odf|odg|odi|odp|ods|odt|sxc|sxd|sxi|sxw|dmg|torrent|deb|msi|iso|rpm)$
60 50% 1440

I'm expecting images to be cached for at least an hour.

I've found that images are getting cached for a far shorter time than I
expect. The following are 2 requests a few minutes apart using wget -S

$ wget -S --spider http://www.xxx.com/icon_watch.gif
HTTP request sent, awaiting response...
   HTTP/1.0 200 OK
   Date: Sat, 30 Sep 2006 19:29:47 GMT
   Accept-Ranges: none
   Content-Type: image/gif
   Content-Length: 61
   Age: 265
   X-Cache: HIT from xxx.com
   Via: 1.0 xxx.com:80 (squid/2.6.STABLE3)
   Connection: keep-alive
Length: 61 [image/gif]
200 OK

$ wget -S --spider http://www.xxx.com/icon_watch.gif
   HTTP/1.0 200 OK
   Date: Sat, 30 Sep 2006 19:36:05 GMT
   Accept-Ranges: none
   Content-Type: image/gif
   Content-Length: 61
   X-Cache: MISS from xxx.com
   Via: 1.0 xxx.com:80 (squid/2.6.STABLE3)
   Connection: keep-alive
Length: 61 [image/gif]
200 OK

What are the reasons this image isn't getting cached as I expect?

Thanks,
Mark
Received on Sat Sep 30 2006 - 13:48:41 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:04 MDT