On tor, 2008-10-23 at 16:30 +0800, Sandy lone wrote:
> Hello,
>
> Under what cases squid will use refresh_pattern?
> If the response objects have expire or age headers, squid will follow
> their values.
Yes. Unless overridden in refresh_pattern override options.
> If the response objects have neither expire nor age headers, squid
> will not cache them at all.
If there is no Expires then caches are allowed to guess as they like
pretty much.
Responses which should not be cached MUST have suitable Cache-Control
headers, or Expires: "now" (same as Date header).
Age is a different header. You probably meant Last-Modified, from which
the doument age can be calculated (document_age = Date - Last-Modified)
> So when will squid use the refresh_pattern settings?
In the default settings with a min-age of 0 when there is no Expires but
there is Last-Modified.
If a min-age >0 is used then this is used if there is no Last-Modified.
Regards
Henrik
This archive was generated by hypermail 2.2.0 : Thu Oct 23 2008 - 12:00:04 MDT