cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: Replacing HTTP-header value
Date Wed, 23 Mar 2005 13:43:18 GMT
What version of cocoon are you using? I can't see from the action itself 
how it could be appending your header :

         for (int i = 0; i < names.length; i++) {
             response.setHeader(names[i],parameters.getParameter(names[i]));
             results.put(names[i], parameters.getParameter(names[i]));
         }

so if you set Vary to asd, cocoon sends Hostasd ?


Ilya Vyatkin wrote:
> hi!
> 
> 
> How can I remove http response header "Vary" or replace its value?
> Cocoon sets it as "Vary: Host" what leads to local caching problems in IE :(
> 
> I've tried using org.apache.cocoon.acting.HttpHeaderAction with parameter:
> <map:parameter name="Vary" value="myValue" />
> But it appends value instead replacing.
> 
> Here is my example:
> <map:match pattern="**.jpg">
> 	<map:act type="set-header">
> 		<map:parameter name="Vary" value="asd" />
> 	</map:act>
> 	<map:read mime-type="images/jpg" src="{1}.jpg"/>
> </map:match>
> 
> 
> ilya


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


Mime
View raw message