cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Caching of external documents
Date Tue, 07 May 2002 13:13:14 GMT
> From: John Gilbertson [mailto:jgilbert@liverpool.ac.uk]
> 
> On Fri, 3 May 2002, Vadim Gritsenko wrote:
> 
> >> The cached version it's using was me trying in work yesterday..
this
> >> morning it's still using that cached version, even though it's
> >> requesting the file each time I request the page from it.
> >
> >Check last modified time in the HTTP response of your
> >www.compsoc.man.ac.uk server. Cocoon will use cached version if
server
> >reports that file was not modified. See Cocoon's URLSource.java,
> >getLastModified method.
> 
> Unfortunately, the Zope server doesn't seem to return a last-modified
> header with a page. Does this mean that Cocoon will always assume that
> it's not modified, without checking the contents?

Cocoon will assume that it is always modified, and this effectively
disables any caching.


> Barring editing the source, is it possible to put some directive
> somewhere saying re-get it no matter what?

Comment out getLastModified() method in URLSource - default
implementation always returns 0 meaning that no last modification date
known.

Vadim

 
> --
> John Gilbertson


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message