Hi,

You could write a servlet filter and only map it to those resources in
web.xml

Ryan

-----Original Message-----
From: Keith Bottner [mailto:[EMAIL PROTECTED]
Sent: 30 July 2004 13:53
To: [EMAIL PROTECTED]
Subject: How do you set cache-control for static (gif, jpg) resources


I am trying to find out how I can set my static content for images,
javascript and css to have a different cache-control setting. It appears
that Tomcat always returns Cache-Control: no-cache with every response. I
want to specify certain static resources such as gif and jpg to have
Cache-Control: public,max-age=7200.
 
Does anyone know how to configure Tomcat to do this? I have Googled
everywhere with no luck!
 
Keith

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

Reply via email to