Search squid archive

Re: squid only caching for a few seconds... i.e. MISS/HIT/MISS/HIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Neil Harkins" <nharkins@xxxxxxxxx> 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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux