I'd use a servlet filter; but either way it should work.

Peter Crowther wrote:

From: Rodrigo Avila [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Reply via email to