RE: Does squid get object from cache or not?

From: Dave J Woolley <DJW@dont-contact.us>
Date: Thu, 29 Jul 1999 16:35:17 +0100

> From: Majid SalimZadeh [SMTP:Salim@safineh.net]
>
> Isn't there any way to tell squid not to confirm and check the page with
> its parent?
>
        Lock the server to NTP time etc. (do this for squid as
        well and preferably the client).

        Make sure that the server always sends a valid Date header
        (normal case). Make sure that it always sends a
        Last-Modified-Date header (you will normally need to
        take special steps for SSI, ASP, CGI and other dynamic
        content. Make sure that the server sends Expires AND
        Cache-Control: max-age headers that correctly reflect the
        life expectancy of the page (there are limits though);
        these require special configuration and/or programming.
        Do not update pages, replace them with new URLs.

        On the client, make sure that it sends Cache-Control:
        max-stale and consider only-if-cached, but this will
        probably fail. These are HTTP 1.1 features and may
        not be recognized by squid - check the source, or wait
        for Henrik. I know no way of setting these on the big
        2 browsers.

        On squid, well if you need to ask.....

        The last person asking about this on the list had problems
        with his users reading each other's web mail because
        of inappropriate caching. There are ways of preventing
        revalidation but they should not be used unless you have
        a deep understanding of the HTTP protocol, the level of
        mis-implementation in servers and browser behaviour.

        I've not given worked examples, as you need to go to the
        source documents, rather than try a cook book recipe. The
        only good cook book recipe is do nothing. (Actually, you can
        probably modify the parameters for file types that are only
        ever used as cosmetic images.)
Received on Thu Jul 29 1999 - 09:34:55 MDT

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