summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-02-19 09:08:19 +0100
committerGitHub2024-02-19 09:08:19 +0100
commitf5c80f6d8157dabaac7df2db1fbf824fa85cd8a0 (patch)
treeee2c7866194fa75a3dd060e7c92b57713b03609c
parent7659939d3c80bc3bdd2c501f59035a6ab7dc6b13 (diff)
parentc2dd450579e705df89e458cecc40530227504d3f (diff)
Merge pull request #41 from CCC-MF/issue_39
feat: add cache-control headers for static resources
-rw-r--r--src/main/resources/application.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index dd820c8..0d219aa 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -6,5 +6,16 @@ spring:
flyway:
locations: "classpath:db/migration/{vendor}"
+ web:
+ resources:
+ cache:
+ cachecontrol:
+ max-age: 1d
+ chain:
+ strategy:
+ content:
+ enabled: true
+ paths: /**/*.js,/**/*.css,/**/*.svg,/**/*.jpeg
+
server:
forward-headers-strategy: framework \ No newline at end of file