The mime type for javascript for the expires by type filter is documented as text/javascript. Tomcat actually serves javascript with the mime-type application/javascript. http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html Says <init-param> <param-name>ExpiresByType text/javascript</param-name> <param-value>access plus 1 month</param-value> </init-param> Should say <init-param> <param-name>ExpiresByType application/javascript</param-name> <param-value>access plus 1 month</param-value> </init-param>
Actually the text says access plus 10 minutes or something but you get the idea :-)
Thanks. We have forgot this when we updated the mime type definitions for TC 7 in web.xml. Fixed now in trunk and TC 7 (r1293832 and r1293837).