https://bz.apache.org/bugzilla/show_bug.cgi?id=61156
Bug ID: 61156 Summary: ExpiresFilter is not working Product: Tomcat 8 Version: 8.5.15 Hardware: PC Status: NEW Severity: major Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: br...@databaseknowledge.com Target Milestone: ---- In web.xml file I added the standard ExpiresFilter syntax: <filter> <filter-name>ExpiresFilter</filter-name> <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class> <init-param> <param-name>ExpiresByType image</param-name> <param-value>access plus 5 weeks</param-value> </init-param> <init-param> <param-name>ExpiresByType text/css</param-name> <param-value>access plus 5 weeks</param-value> </init-param> <init-param> <param-name>ExpiresByType application/javascript</param-name> <param-value>access plus 5 weeks</param-value> </init-param> </filter> <filter-mapping> <filter-name>ExpiresFilter</filter-name> <url-pattern>/cache/*</url-pattern> </filter-mapping> The headers are missing the Cache-Control header: Accept-Ranges:bytes Content-Length:1384282 Content-Type:application/javascript Date:Tue, 06 Jun 2017 04:38:11 GMT ETag:W/"1384282-1494926612738" Last-Modified:Tue, 16 May 2017 09:23:32 GMT Note that the /cache path is defined as: <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context docBase="C:\_portal\webroot\cache" path="/cache" /> I do not think this matters as I tried the /example/* path and this has the same problem. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org