Date: Fri, 2 Dec 1994 18:13:58 +0100
Message-Id: <61907.9412021713@killer.aixssc.uk.ibm.com>
From: Sean Martin <sean@mailserver.aixssc.uk.ibm.com>
To: Multiple recipients of list <www-proxy@www0.cern.ch>
Subject: Re: What are the rules for caching
%> what about if the script will always return the same page - ie. like a
%> gateway to another WWW object storage system ?
%If the script _always_ returns the same page, then why would you use a
%script to return it? Why not just put it on the system?
%It seems to me that you only use scripts where some factor of the page
%changes for each invocation.
Sorry, I expressed myself clumsily. I meant that the script would always
return same page, given the right arguments ie.
http://some.host.com/dogateway/a-database-ref.html
or http://some.host.com/dogateway/a-database-ref.gif
Where the script is always "dogateway" and the "a-database-ref.html"
document is extracted using PATH_INFO. This then goes into an SQL query
which returns the oppropriate blob and serves the html doc/image from a storgage
system that might have more going for it than say a raw Unix filesystem. I
cannot see any reason why Last-modified and Expired should not be sent just
as if this doc was served directly from the Unix directory. If the correct
ref (eg a-database-ref.html) is always used, myscript will always only return
the single page referenced.
Kindest regards Sean.
--Sean Martin, User Systems, ISC, IBM Europe Internet: sean@mailserver.aixssc.uk.ibm.com || sean_martin@uk.ibm.com UKnet: sean@aixssc.ibm.co.uk Sudbury Towers, London, England, UB6 0JA. ** The views above are mine and are not necessarily shared by my employer **