Re: [squid-users] caching too good?

From: Ralf Hildebrandt <Ralf.Hildebrandt@dont-contact.us>
Date: Fri, 11 Mar 2005 09:32:19 +0100

* Reuben Farrelly <reuben-squid-users@reub.net>:

> Ralf: the defaults as shipped in squid.conf is to have these uncommented:

That is refresh_pattern not refresh_patternS with an S at the end...

% grep -i refresh_pattern /etc/squid/squid.conf

# 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?

> refresh_pattern ^ftp: 1440 20% 10080
> refresh_pattern ^gopher: 1440 0% 1440
> refresh_pattern . 0 20% 4320
>
> Try putting them in, and see if it makes any difference.

-- 
Ralf Hildebrandt (i.A. des IT-Zentrum)          Ralf.Hildebrandt@charite.de
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-962
IT-Zentrum Standort CBF                 send no mail to spamtrap@charite.de
Received on Fri Mar 11 2005 - 01:32:21 MST

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