You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Colin Kingsbury <Co...@empolis-na.com> on 2003/05/02 20:46:41 UTC

Caching a file generator which gets content from a URL?

Hi all,

I have a URL like so:
http://foo/servlet/doSomething?param=bar which returns a mess of XML.

I have a pipeline which builds a document by calling URLs like these
through FileTransformers. What I would like to do is have the result be
cached so that a full regeneration only happens when one of the
underlying resources has changed, an event which can be expected to
happen on maybe a daily or hourly basis.

AFAICT the caching pipeline with File Transformer will cache based on
the modified date of the file, but ifd the file isn't a file, what ever
will it do?

Thanks in advance!

Best,
-cwk.


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


Re: Caching a file generator which gets content from a URL?

Posted by Tony Collen <tc...@neuagency.com>.
On Fri, 2 May 2003, Colin Kingsbury wrote:

> AFAICT the caching pipeline with File Transformer will cache based on
> the modified date of the file, but ifd the file isn't a file, what ever
> will it do?


Well, I could be wrong, but I think Cocoon would check the
last-modified-since header coming from the HTTP server to see if it needs
a newer version.

Tony


--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--


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