cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Is Cocoon2 caching implemented?
Date Mon, 14 Aug 2000 20:33:51 GMT
Brian May wrote:
> 
> >>>>> "Stefano" == Stefano Mazzocchi <stefano@apache.org> writes:
> 
>     >> Personally, my major concern for Cocoon 1 (and so far Cocoon
>     >> 2), is that static web pages do not have the http
>     >> "Last-Modified" header.
> 
>     Stefano> This is a matter or writing a new serialier (or improving
>     Stefano> on existing ones) that is able to do this... there is
>     Stefano> nothing in the C2 architecture that doesn't allow you to
>     Stefano> do that.
> 
> I think the hardest part might be knowing
> 
> 1. what "last modified" header to use.
> 
> 2. Also when to use the "expires" header (dynamic pages should expire)
> might be an issue.
> 
> I am guessing that 2 could be specified in the sitemap, however 1,
> might be harder. You could have the last-modified date of the XML
> file:
> 
> last-modified(out.html) = last-modified(in.xml)
> 
> or the XSL file:
> 
> last-modified(out.html) = last-modified(in.xsl)
> 
> Or perhaps something like:
> 
> last-modified(out.html) = max(last-modified(in.xml),last-modified(in.xsl))
> 
> would be more appropriate? I am assuming it is easy enough to obtain
> the last-modified(in.xml) and last-modified(in.xsl) in the serializer
> layer?

Hmmm, I agree we should spend more thoughts on this...
 
>     Stefano> ... anyway, using a CVS generator and a proxy friendly
>     Stefano> serializer could allow us to update the site directly
>     Stefano> without having to touch anything, just trusting CVS
>     Stefano> security and all documentation would be reflected
>     Stefano> directly to the proxy (if modified from internal Cocoon
>     Stefano> cache).
> 
>     Stefano> Wouldn't that be totally cool? :-)
> 
> Sounds interesting...
> 
> Although, with cvs, something like
> 
> last-modified(out.html) = max(last-checked-in(in.xml),last-checked-in(in.xsl))
> 
> might(?) be more appropriate...

Yes, you are right.
 
> (would it be possible to use the CVS generator to "create" in.xsl???)

Probably so, if we implement a CVS protocol handler...

> While we are on the topic of generators, I am just interested,
> will the following be possible? (sorry about my ASCII art...)
> 
> (/dir/to/images --> ImageDirectoryGenerator) --|
>                                                |
> (/otherdir/file.xml --> FileGenerator)  --> XalanTransformer --> output
> 
> ie, when transforming an input xml file, would it be possible to
> obtain image heights and widths from the ImageDirectoryGenerator, and
> insert them in the HTML tags <img href="..." height="..." width="...>,
> so that these don't have to be hard-coded?

 
> Or, perhaps, this is the wrong solution, and a better solution might
> be to get the HTML serializer to automatically add this information?
> --
> Brian May <bam@snoopy.apana.org.au>

Either XSLT extentions or a special HTML serializer (maybe the default
HTML serializer could be patched to do that automatically).

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message