From adc24f401681780c5dde7fb9a4baf72a23ea4eb7 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Tue, 10 Jul 2018 08:32:03 +0200 Subject: [PATCH] #331 Enabling browser caching of static resources --- src/main/resources/application.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c8d5a5c1a..08fd9ddb1 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -23,3 +23,7 @@ logging.level.org.springframework=INFO # Active Spring profiles spring.profiles.active=production + +# Maximum time the static resources (css, js, fonts and images) should be cached +spring.resources.cache.cachecontrol.max-age=12h +