cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianugo Rabellino <>
Subject Re: [RT] More on caching, expires, and proxy-friendly headers
Date Tue, 11 Feb 2003 14:37:24 GMT
Vadim Gritsenko wrote:

>> 3. I dare you to find a clean solution from the sitemap POV to express 
>> this kind of conditions. :-)
> Ahem...

> ObjectModelHelper.getResponse(objectModel).addHeader("Vary", "User-Agent");

Not quite what I meant. First, I'm not sure, from the HTTP specs, that 
you can have more than one Vary header, actually I think it's quite the 
opposite (but I might well be wrong), so an addHeader might be dangerous 
(well, a setHeader might be even worse...). Second (and more important): 
in order to build a consistent system these headers should be set not by 
the sitemap components directly but by Cocoon itself, and there should 
be a clean way to declarate in the sitemap what kind of headers you want 
to be sent (and no, using an Action would not be a clean way :-)).


Gianugo Rabellino
Pro-netics s.r.l.

To unsubscribe, e-mail:
For additional commands, email:

View raw message