cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: [RT]Cache/proxy friendly HTTP headers
Date Fri, 11 Jan 2002 14:32:59 GMT
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> 
> This would of course end up in a configuration nightmare. Another
> possibility would be to make such a stream pipeline configurable in
> the pipelines section of the sitemap:
> 
> <map:pipeline name="caching">
>    <map:parameter name="expires" value="after 1 day"/>
> 
>    ....
> </map:pipeline>
> 
> So parameters would be passed on to the stream pipeline object which
> could in turn set the corresponding http headers.
> 
> What do think about this?

How about this:

<map:components>
  <map:pipelines default="caching">
    <map:pipeline name="caching">
      <stream-pipeline src="CachingStreamPipeline"/>
      <event-pipeline src="CachingEventPipeline"/>
    </pipeline>
    <map:pipeline name="profiling-caching">
      <stream-pipeline src="ProfilingCachingStreamPipeline"/>
      <event-pipeline src="ProfilingCachingEventPipeline"/>
    </map:pipeline>
  </map:pipelines>
</map:components>  

<map:pipelines>
  <!-- note: type="" instead of name=""! -->
  <map:pipeline type="caching">
    <map:parameter name="expires" value="after 1 day"/>
    ....
  </map:pipeline>
</map:pipelines>

This would be more consistent with the rest of the sitemap.

Vadim


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


Mime
View raw message