Re: [squid-users] caching too good?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 11 Mar 2005 13:09:49 +0100 (CET)

On Fri, 11 Mar 2005, Ralf Hildebrandt wrote:

> # TAG: refresh_pattern
> # usage: refresh_pattern [-i] regex min percent max [options]
> # The refresh_pattern lines are checked in the order listed here.
> # refresh_pattern ^ftp: 1440 20% 10080
> # refresh_pattern ^gopher: 1440 0% 1440
> # refresh_pattern . 0 20% 4320
> refresh_pattern -i \.gif$ 600 50% 40320
> refresh_pattern -i \.jpe?g$ 600 50% 40320
> refresh_pattern -i \.tif?f$ 600 50% 40320
> refresh_pattern -i \.png$ 600 50% 40320
> refresh_pattern -i \.mov$ 600 50% 40320
> refresh_pattern -i \.qt$ 600 50% 40320
> refresh_pattern -i \.avi$ 600 50% 40320
> refresh_pattern -i \.mpe?g$ 600 50% 40320
> refresh_pattern -i \.wav$ 600 50% 40320
> refresh_pattern -i \.au$ 600 50% 40320
> refresh_pattern -i \.aif?f$ 600 50% 40320
> refresh_pattern -i \.ps$ 360 30% 40320
> refresh_pattern -i \.pdf$ 360 30% 40320
> refresh_pattern -i \.gz$ 360 30% 40320
> refresh_pattern -i \.Z$ 360 30% 40320
> refresh_pattern -i \.zip$ 360 30% 40320
> refresh_pattern . 180 30% 20160
> # see also refresh_pattern for a more selective approach.
>
>
> I guess this changes things?

Yes.. and matches what you see.

If you look at the headers of the cache hit you gate before it indicated
an age of 228519 seconds (or "merely" 3808 minutes) which is within most
of your refresh_pattern settings above.

In addition by using a min age greater than 0 you make Squid cache very
aggressively. See the comments on the refresh_pattern directive usage.

Regards
Henrik
Received on Fri Mar 11 2005 - 05:09:51 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:02 MST