2010/3/16 Anurag Kapur <anuragka...@gmail.com>: > I wanted to poll this group to know if there are any settings/configurations > in Tomcat (version 5.5.27) that can set default HTTP response headers, fir > example Cache-Control?
There is none. You can either implement a Filter [1] (inside a web application), see the Java Servlet specification [2] for details, or a Valve [3] (at any Tomcat container level). If you will be using a Filter, I would recommend to look at UrlRewriteFilter by Paul Tuckey [4]. [1] http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/Filter.html [2] http://java.sun.com/products/servlet/reference/index.html [3] http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/Valve.html [4] http://tuckey.org/urlrewrite/ Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org