Miles Elam wrote:
> 
> I'm using 2.1-dev and for the life of me, I can't figure out how to get 
> the expires parameter to work.  I tried following the instructions on 
> the web site (http://xml.apache.org/cocoon/performancetips.html), but 
> they had no effect.
> 
> I must say that the instructions are a little ambiguous since 
> <map:pipeline[s]> exists in both <map:components> and on its own (the 
> current topic of discussion on the developer list).  I made the 
> assumption that the expires parameter goes into the elements on their 
> own as a global expires doesn't make much sense to me.
> 
> However, after putting in items such as
> 
>   <map:pipeline>
>     <map:parameter name="expires" value="access plus 1 minutes"/>
> 
>     <map:match pattern="debug.xml">
>       <map:generate type="request"/>
>       <map:serialize type="xml"/>
>     </map:match>
>   </map:pipeline>
> 
> I get no enhanced behavior.  No expiration header gets set -- and it's 
> easy to see what headers get set with that particular pipeline.  Should 
> I file a bug or am I missing something important?
> 
The syntax above seems correct.

Hi, I did only a quick look at the source code, but it seems that
the expires is only set if the request is *not* served from the 
cache. So, you could try to use the none caching implementation
of the pipeline (<map:pipeline type="noncaching">).

Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to