tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert r. Sanders" <robert.sand...@ipov.net>
Subject Re: set header in all responses
Date Wed, 27 Apr 2005 16:21:00 GMT
I'd use a servlet filter; but either way it should work.

Peter Crowther wrote:

>>From: Rodrigo Avila [mailto:rdeavila@gmail.com] 
>>Is possible to put this headers in all responses generated by Tomcat?
>>
>>response.setHeader("Pragma","no-cache"); response.setHeader
>>("Cache-Control","no-history");
>>response.setDateHeader("Expires",-1); 
>>    
>>
>
>Yes.  At worst, you could write a Valve that set those fields before
>invoking the next valve in the chain, and put it into your server.xml.
>There may well be more elegant solutions.
>
>		- Peter
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

-- 
    Robert r. Sanders
    Chief Technologist
    iPOV
    (334) 821-5412
    www.ipov.net


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message