From 46babdad7c0b82416f5a6781daf527fa8a454656 Mon Sep 17 00:00:00 2001
From: Antoine Rey <antoine.rey@gmail.com>
Date: Tue, 10 Jul 2018 08:32:03 +0200
Subject: [PATCH] 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 ffaf41f..f9c02d1 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
-- 
GitLab