Re: What are the rules for caching?

Ari Luotonen (luotonen@neon.mcom.com)
Fri, 2 Dec 1994 20:25:14 +0100

Date: Fri, 2 Dec 1994 20:25:14 +0100
Message-Id: <9412021925.AA11231@neon.mcom.com>
From: luotonen@neon.mcom.com (Ari Luotonen)
To: Multiple recipients of list <www-proxy@www0.cern.ch>
Subject: Re: What are the rules for caching?

> > * response contains a "Last-modified" and/or "Expires" header
> > (dynamic script responses don't => shouldn't be cached)
>
> Does this apply the other way around too: Dynamic script responses
> *shouldn't* have a "Last-modified" and/or "Expires" header?

Absolutely not. If the script can produce relevant LM/Exp headers
that only reflects the fact that the generated document can indeed be
cached. It's just that often script responses are different every
time (virtually expire immediately).

But if you have a data aquisition system that gets its data from
somewhere once an hour, then clearly you can give LM to be the time of
last update (of the most recent database that affects the results, in
case there are many), and the Expires as the time of the next db
update.

Cheers,

--
Ari Luotonen				http://home.mcom.com/people/ari/
Netscape Communications Corp.
650 Castro Street, Suite 500
Mountain View, CA 94041, USA