Re: [SQU] HTTP header date

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 31 Oct 2000 11:29:28 -0700 (MST)

On Tue, 31 Oct 2000, Marc Tardif wrote:

> > > Once a page is cached, does squid check the HTTP
> > > header date field of the website for each subsequent
> > > requests to make sure the cache is up to date? Where
> > > can I find details about this in the online docs?
> >
> > Maybe the FAQ entry answers your question?
> > http://www.squid-cache.org/Doc/FAQ/FAQ-12.html#ss12.20
> >
> Two more questions on the subject:
> - When refreshing a cached object, does Squid first
> check the header of the URL and only download the
> body if the HTTP Date reply header (OBJ_DATE) or
> HTTP Last-Modified reply header (OBJ_LASTMOD) has
> changed?

Squid does not use the HEAD method, if that is what you mean.

If Squid has the object cached, and the object has a last-modified
timestamp, then Squid sends an if-modified-since request.

Then the server doesn't send the whold body if the object didn't
change.

>
> - If not, is there a way to have Squid simulate
> this behavior and ALWAYS at least check the
> header for each request even if the object is
> cached?

Probably something like this would do what you want:

        refresh_pattern 0 0 0 override-expires

Duane W.

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Oct 31 2000 - 11:32:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:04 MST