cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: AW: [C1,C2][feature request][response.setHeader["Expires","Thu, 01 Dec 1994 16:00:00 GMT");
Date Fri, 26 Jan 2001 16:45:14 GMT
Carsten Ziegeler wrote:
> > Giacomo Pati wrote:
> > An other approach is to extend the generators to be
> > configurable/parametrizable with headers
> >
> >   <map:generator name="no-cache-file" src="FileGenerator">
> >     <header name="pragma" value="no-cache"/>
> >     <header name="cache-control" value="no-cache"/>
> >     <expires>+10000</expires>
> >   </map:generator>
> >
> >   <map:generator name="semi-cache-file" src="FileGenerator">
> >     <header name="pragma" value="no-cache"/>
> >     <header name="cache-control" value="no-cache"/>
> >     <expires>+100</expires>
> >   </map:generator>
> >
> >   <map:generator name="normal-file" src="FileGenerator">
> >   </map:generator>
>
> +10
>
> I personally like this approach, as it is usable for every pipeline
> not only for XSP.
> The only question I would raise: Is the generator the right place?
> Or shouldn't it be the pipeline itself?
> The header values are for the whole pipeline/request, so I think
> logically they don't belong to the generator.
> Or am I just too pedantic on this?

My point is that is has nothing to do with the concern of the sitemap (it is 
describing how requests leads to responses). The header story is IMHO the 
concern of a generator or maybe a transformer because they deal directly with 
the environment (and the sitemap doesn't/shouldn't)

Giacomo

>
> Carsten
>
>
> Open Source Group              sunShine - Lighting up e:Business
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de                           mailto:cziegeler@sundn.de
> ================================================================
> CeBIT Hannover 22.-28.3.2001
> Visit us: Hall 18/EG Stand A24/11
> and Hall 3 Stand C33 (Software AG)
> ----------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

Mime
View raw message