Re: Default caching maximum time

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 12 Feb 2004 03:11:52 +0100 (CET)

On Wed, 11 Feb 2004, Leeann BENT wrote:

> I was wondering if someone could confirm that I am reading the squid.conf
> correctly when I take the following to mean that squid caches all objects
> (except ftp and gopher) for 3 days by default:
>
> refresh_pattern ^ftp: 1440 20% 10080
> refresh_pattern ^gopher: 1440 0% 1440
> refresh_pattern . 0 20% 4320

The refresh_pattern only applies in case the server has not sent any
explicit expiry time. If there is a explicit expiry time set by the server
then this is used, or at least unless you have refresh patterns overriding
expire.. (special flag).

If there is no explicit expiry time set by the sever then the
refresh_pattern is applied based on the last-modified header, or min if no
last-modified timestamp is indicated by the server.

> I know the min time is given in minutes (in this case 0) and I just want
> to make sure that the max time is in the same units.

Both min and max are in minutes.

Between ther you have percentage of now - Last-modified.

Regards
Henrik
Received on Wed Feb 11 2004 - 19:12:00 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:04 MST