cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: [C1,C2][feature request][response.setHeader["Expires","Thu, 01 Dec 1994 16:00:00 GMT");
Date Thu, 25 Jan 2001 09:32:32 GMT
> 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?

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)
----------------------------------------------------------------


Mime
View raw message