diff options
| author | Paul-Christian Volkmer | 2024-02-19 08:54:38 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2024-02-19 08:54:38 +0100 |
| commit | c2dd450579e705df89e458cecc40530227504d3f (patch) | |
| tree | aaa145ae70aacf82d5cc43351f26acaf8c6f7cc3 | |
| parent | 550403cc9f2af64d39c599d815eb2bb237dda5be (diff) | |
feat: add cache-control headers for static resources
| -rw-r--r-- | src/main/resources/application.yml | 11 |
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 |
