Andreas Schildbach wrote, On 3/14/2004 12:48 PM:

is there an easy way to set HTTP headers (specific: cache-control) in Tomcat 5 for static resources like CSS files or GIF pictures?


By default, Tomcat does not seem to touch these headers.

I know that I can set headers from Servlets/JSPs, but that does not help in the case of static resources.

You can write a Servlet Filter to do this. I am also unaware of any way to do this within Tomcat itself.


-Dave

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



Reply via email to