aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-03-20 16:07:17 +0300
committerGravatar Vitaly Takmazov2017-03-23 16:05:00 +0300
commit7a0fd451679e994db39008e97cdd79b19a62a4c5 (patch)
tree4eeae9234bbe0d9cefa79447f970df779b47a023 /juick-www/src/main/java/com/juick
parent3c5ec95b59dac6820751a9e3d498cf7bf3538724 (diff)
juick-core: fix TokensList model
Diffstat (limited to 'juick-www/src/main/java/com/juick')
-rw-r--r--juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java b/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java
index c4e6c07c..877c94ac 100644
--- a/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java
+++ b/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java
@@ -42,13 +42,13 @@ public class WwwServletConfiguration extends WebMvcConfigurationSupport {
"/*.png",
"/favicon.ico")
.addResourceLocations("/")
- .setCacheControl(CacheControl.maxAge(30, TimeUnit.DAYS))
+ .setCacheControl(CacheControl.maxAge(30, TimeUnit.DAYS).mustRevalidate().cachePublic())
.resourceChain(true)
.addResolver(new PathResourceResolver());
registry.addResourceHandler("/static/**")
.addResourceLocations("/static/")
- .setCacheControl(CacheControl.maxAge(30, TimeUnit.DAYS));
+ .setCacheControl(CacheControl.maxAge(30, TimeUnit.DAYS).mustRevalidate().cachePublic());
}
@Override