Re: Configuring squid never check the source object

From: David J Woolley <djw@dont-contact.us>
Date: Mon, 15 Mar 1999 14:15:55 -0000

[ slightly re-arranged ]
> assa wrote:

Note he is actually using a development version and shouldn't really
be using it if he can't answer the question for himself, and
certainly shouldn't be asking on this list.
>
> > IF OBJECT_NOT_IN_CACHE .OR. HAS_BEEN_EXPIRED_FROM_CACHE

> As far as I know this is the default behaviour of any caching
> server which can be configured to use a parent (use cache if fresh,
> else ask

I think he's actually very confused, but this differs from the
behavour of squid as follows:

> > IF OBJECT_NOT_IN_CACHE .OR. HAS_BEEN_EXPIRED_FROM_CACHE
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 1. GET_THE_REQUESTED_OBJECT_FROM_THE_SOURCE_SITE_THROUGH_PARENT

If it has expired (but is still in the cache) a conditional GET is
issued and the cached copy is used if the upstream server returns
"not modified".

> > 2. STORE_THE_OBJECT_TO_SQUID_CACHE
> > 3. SEND_THE_STORED_OBJECT_IN_CACHE_TO_CLIENT_BROWSER

Squid (and CERN for that matter) will start returning the the object
as it is read into the cache, not wait for a complete download.

These are both fairly obvious, but given the nature of the question,
it is not possible to be sure that these distinctions are of the
essence of the question.

> > ELSE
> > SEND_THE_STORED_OBJECT_IN_CACHE_TO_CLIENT_BROWSER
> > END

-- 
David Woolley - Office: David Woolley <djw@bts.co.uk>
BTS             Home: <david@djwhome.demon.co.uk>
Wallington      TQ 2887 6421
England         51  21' 44" N,  00  09' 01" W (WGS 84)
Received on Mon Mar 15 1999 - 08:00:49 MST

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