tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Lissack <rliss...@buildonline.com>
Subject RE: How do you set cache-control for static (gif, jpg) resources
Date Fri, 30 Jul 2004 12:58:26 GMT
Hi,

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

Ryan

-----Original Message-----
From: Keith Bottner [mailto:kbottner@comcast.net]
Sent: 30 July 2004 13:53
To: tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message