Search squid archive

Re: squid refresh_pattern question

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

 



tor 2009-10-29 klockan 11:55 -0700 skrev Evuraan:
> ref, http://www.squid-cache.org/Doc/config/refresh_pattern/
> 
> if i wanted to ensure that  *all* objects without explicit expiry time
> should be considered fresh for 4320
>  seconds, what do I set?
> 
> #1:
> refresh_pattern .		0	20%	4320
> 
> or
> 
> #2:
> refresh_pattern .		4320	100%	4320
> 
> I think #2. but then why would #1 have 4320? or, ims goes out based on
> some combo of min, percent & max values?


For objects with no expiry and no Last-Modified min is used.

If there is a known Last-Modified then % of the modification age bounded
by max is used.

There is also a refresh_pattern option to make min apply when there is a
last-modified as well.


Generally setting min > 0 in normal Internet proxies is not a good idea,
and may cause cache problems with many sites still. Not technically
forbidden by HTTP specifications, but unexpected by many webauthors.


Regards
Henrik


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

  Powered by Linux