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
Received on Thu Oct 29 2009 - 23:02:34 MDT
This archive was generated by hypermail 2.2.0 : Fri Oct 30 2009 - 12:00:03 MDT