From 46babdad7c0b82416f5a6781daf527fa8a454656 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Tue, 10 Jul 2018 08:32:03 +0200 Subject: [PATCH 1/2] Enable caching of static resources See gh-332 --- src/main/resources/application.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index ffaf41f23..f9c02d188 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -20,3 +20,6 @@ management.endpoints.web.exposure.include=* logging.level.org.springframework=INFO # logging.level.org.springframework.web=DEBUG # logging.level.org.springframework.context.annotation=TRACE + +# Maximum time the static resources (css, js, fonts and images) should be cached +spring.resources.cache.cachecontrol.max-age=12h From 895422b8c8ddb1d0f94a51da2c66a3c86b09e930 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 10 Jul 2018 09:10:03 +0200 Subject: [PATCH 2/2] Polish "Enable caching of static resources" Closes gh-332 --- src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f9c02d188..b93ff4de3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -21,5 +21,5 @@ logging.level.org.springframework=INFO # logging.level.org.springframework.web=DEBUG # logging.level.org.springframework.context.annotation=TRACE -# Maximum time the static resources (css, js, fonts and images) should be cached +# Maximum time static resources should be cached spring.resources.cache.cachecontrol.max-age=12h