diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2018-05-30 18:26:46 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-30 20:20:48 +0200 |
commit | daffaa48bde31ed22c3c5547b5e035cf2161a2f8 (patch) | |
tree | 3ad0c39040512cbf801add447d5fe4fed38eb7a6 /server/sonar-web/public/WEB-INF | |
parent | d838a5c6d7ddf0b0e2b449882dfddbabe8181ab3 (diff) | |
download | sonarqube-daffaa48bde31ed22c3c5547b5e035cf2161a2f8.tar.gz sonarqube-daffaa48bde31ed22c3c5547b5e035cf2161a2f8.zip |
SONAR-10674 Update cache policy for js, css and images path files
Diffstat (limited to 'server/sonar-web/public/WEB-INF')
-rw-r--r-- | server/sonar-web/public/WEB-INF/web.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-web/public/WEB-INF/web.xml b/server/sonar-web/public/WEB-INF/web.xml index 0079ac0ed10..c06dc4eecc8 100644 --- a/server/sonar-web/public/WEB-INF/web.xml +++ b/server/sonar-web/public/WEB-INF/web.xml @@ -44,6 +44,10 @@ <filter-name>WebPagesFilter</filter-name> <filter-class>org.sonar.server.platform.web.WebPagesFilter</filter-class> </filter> + <filter> + <filter-name>CacheControlFilter</filter-name> + <filter-class>org.sonar.server.platform.web.CacheControlFilter</filter-class> + </filter> <!-- order of execution is important --> <filter-mapping> @@ -67,6 +71,10 @@ <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> + <filter-name>CacheControlFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + <filter-mapping> <filter-name>UserSessionFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> |