W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Changing libwww's cache

From: James Gallagher <jimg@dcz.dods.org>
Date: Wed, 02 May 2001 23:37:58 +0000
Message-ID: <3AF09A56.61BE8754@dcz.dods.org>
To: "www-lib@w3.org" <www-lib@w3.org>
I've been using libwww to implement clients in a data system which uses
HTTP. We're starting to use the cache that comes with libwww quite a bit
and a question has come up. 

When a response contains no Expires header but does contain a
Last-Modified header, the cache uses a heuristic to compute the
expiration time. That's fine but in using the heuristic it ignores the
Default Expiration time.

Is there some reason this was handled this way (i.e., am I missing
something about the default expiration time versus the heuristic
expiration time calculated using the last modified time)?

Changing the code to use the default expiration looks simple but I'd
rather not force the project to use a special version of the library
(and changing the behavior of the cache in this respect outside of
changing the code looks hard, although I may have missed something
there...).

Thanks,
James
-- 
__________________________________________________________________________
James Gallagher		         The Distributed Oceanographic Data System
jgallagher@gso.uri.edu              
http://unidata.ucar.edu/packages/dods
Voice: 541.757.7992					 Fax: 541.758.3254
Received on Wednesday, 2 May 2001 19:39:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT