Re: [squid-users] squid only caching for a few seconds... i.e. MISS/HIT/MISS/HIT

From: Ding Deng <ding.deng@dont-contact.us>
Date: Thu, 20 Sep 2007 14:08:19 +0800

"Neil Harkins" <nharkins@gmail.com> writes:

> Hi. Our squid appears to be caching .css for only a few seconds, when
> I expect it should be caching it longer, and doing IMS requests. I've
> included log excerpts (MISS/HIT/MISS/HIT) and sniffer output below.
>
> I've tried both of the following refresh_patterns with no noticeable
> change:
> refresh_pattern -i \.css$ 0 20% 15
> refresh_pattern -i \.css$ 0 100% 15

You may try to set the min age (currently 0 minute) to a larger value
and see if it makes any differences. And I think it is not a bad idea
for Apache to append an Expires: header for static content like this.

> And here's our logformat to decipher the logs: logformat
> squid-sixapart %{%Y/%m/%d-%H:%M:%S%z(%Z)}tl %6tr %>a %Ss/%03Hs %<st
> %rm %ru %un %Sh/%<A %mt src="%{X-Forwarded-For}>h" ref="%{Referer}>h"
> ua="%{User-Agent}>h" xff="%{X-incoming-X-Forwarded-For}>h"

Six Apart, WOW! ;-)

> The difference in %<st file sizes is due to the headers (X-Cache:
> HIT/MISS, and Age: ), the content hasn't changed in a year.
>
> -neil
Received on Thu Sep 20 2007 - 00:10:10 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT