Search squid archive

Re: Systematic caching

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

 



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


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

  Powered by Linux