cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: Caching of external documents
Date Fri, 03 May 2002 14:09:36 GMT
> From: John Gilbertson []
> I'm trying to link Cocoon with Zope, to take advantage of all of
> CMS features and interface etc, but havin git output XML for use in
> cocoon to produce nicely formatted web-pages, with the option of
> converting them to .rtf .pdf or whatever should people desire.
> However, I'm havin gproblems persuading Cocoon to check for
> modifications to the external .xml file each time the page is
> From what I can tell with using netcat -l -p 4567 on one machine and
> pretending to be a webserver, and gettign cocoon to use that as it's
> remote source of xml file, that even if the page is different to the
> in it's cache, it still uses the cached version.. even if it's over 12
> hours old.
> Here's the thing from the sitemap.xmlap:
>    <map:match pattern="John/zope.html">
>     <map:generate src=""/>
>     <map:transform src="John/zope2html.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
> The cached version i'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 server. Cocoon will use cached version if server
reports that file was not modified. See Cocoon's,
getLastModified method.

> Cocoon version is xml-cocoon2_20020501042034.tar.gz, as I have yet to
> find a release version fo cocoon which will compile straight out of
> box on our solars28 systems with Java 1.4.0. Yet I've never had a
> problem with the one line compile and install script for any of the
> versions...
> Tomact version is 4.0.3 release.
> Any ideas on how to make cocoon actually take notice fo the remote
> being different?
> 	John


Resistance is futile.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message