Re: [squid-users] about refresh_pattern

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 23 Oct 2008 15:22:46 +0200

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

Received on Thu Oct 23 2008 - 13:22:52 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 23 2008 - 12:00:04 MDT