Re: [squid-users] squid on freebsd 4.10 compiled from ports

From: Denis Vlasenko <vda@dont-contact.us>
Date: Tue, 21 Sep 2004 13:51:02 +0300

On Tuesday 21 September 2004 03:45, Thomas S. Crum wrote:
> Hi list,
>
> I have looked everywhere and cannot find what my problem here is. I cannot
> seem to get a refresh_pattern to work.
>
> Currently, the cache is tcp_miss'ing 99.9%+ of the traffic going to it.
> Although I believe I defined it below, I cannot get a single gif to serve
> from the cache.

I, too, was thinking that squid will save some good deal of traffic,
but it didn't do as much as I expected. It saves 20-30% maybe.

But I do get some amount of hits with this cfg:

# refresh_pattern
# NB: refresh calcs fail horribly if your system time is not ok ;)
# min/max in in minutes
# regex min percent max [options]
#
# FTP: min fresh time 2 day, max 20 days
refresh_pattern ^ftp: 2880 50% 28800
# GOPHER: min fresh time 2 days, max 2 days
refresh_pattern ^gopher: 2880 0% 2880
# Images/video
refresh_pattern -i [.]jpg$ 2880 50% 2880000 override-lastmod ignore-reload
refresh_pattern -i [.]jpeg$ 2880 50% 2880000 override-lastmod ignore-reload
refresh_pattern -i [.]gif$ 2880 50% 2880000 override-lastmod ignore-reload
refresh_pattern -i [.]png$ 2880 50% 2880000 override-lastmod ignore-reload
refresh_pattern -i [.]swf$ 2880 50% 2880000 override-lastmod ignore-reload
refresh_pattern -i [.]mp[g123]$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]mpeg$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]avi$ 2880 50% 2880000 override-lastmod reload-into-ims
# Data
refresh_pattern -i [.]gz$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]tgz$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]bz$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]bz2$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]zip$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]arj$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]rar$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]dat$ 2880 50% 2880000 override-lastmod reload-into-ims
# Probably generated content
refresh_pattern -i [.]php$ 0 20% 28800
refresh_pattern -i [?] 0 20% 28800
refresh_pattern -i cgi 0 20% 28800
# Probably plain HTML (first one is for http://host.com/dir/dir/ type URLs)
refresh_pattern -i /$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]htm$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]html$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]xml$ 2880 50% 2880000 override-lastmod reload-into-ims
refresh_pattern -i [.]css$ 2880 50% 2880000 override-lastmod ignore-reload
refresh_pattern -i [.]js$ 2880 50% 2880000 override-lastmod ignore-reload
# All other
refresh_pattern . 0 50% 28800

--
vda
Received on Tue Sep 21 2004 - 04:51:41 MDT

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