Re: [squid-users] Systematic caching

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 27 Aug 2009 13:42:28 +0200

tor 2009-08-27 klockan 03:02 -0700 skrev Evguen:
>
> Henrik Nordstrom-5 wrote:
> >
> > See refresh_pattern. Allows override of most things.
> >
>
> Absolutely right, thanks!
>
> I've done this by commenting following lines :
> #acl QUERY urlpath_regex cgi-bin \?
> #no_cache deny QUERY
>
> This way, URL with GET parameters does not have rule to not to cache these
> pages.

Yes, those lines were removed from the suggested default config quite
some time ago...

> This seems to solve the most important cases.
> Nonetheless, this does not cache pages which answers by 301 or 302 (others?)
> HTTP response code. Any idea ?

301 should get cached unless the server is ugly, but not 302.

> I am not sure about the percent usage. The doc says
> (http://www.squid-cache.org/Doc/config/refresh_pattern/) :
>
> 'Percent' is a percentage of the objects age (time since last
> modification age) an object without explicit expiry time
> will be considered fresh.
>
> I cannot really understand what is the formula here. Can anybody explain me
> please ?

Basically

freshness lifetime = (Last-Modified - Date) * Percent

with some small twists to it which can generally be ignored

Regards
Henrik
Received on Thu Aug 27 2009 - 11:42:36 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 28 2009 - 12:00:03 MDT