summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-02-19 08:54:38 +0100
committerPaul-Christian Volkmer2024-02-19 08:54:38 +0100
commitc2dd450579e705df89e458cecc40530227504d3f (patch)
treeaaa145ae70aacf82d5cc43351f26acaf8c6f7cc3
parent550403cc9f2af64d39c599d815eb2bb237dda5be (diff)
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