diff options
| author | Paul-Christian Volkmer | 2024-02-19 09:08:19 +0100 |
|---|---|---|
| committer | GitHub | 2024-02-19 09:08:19 +0100 |
| commit | f5c80f6d8157dabaac7df2db1fbf824fa85cd8a0 (patch) | |
| tree | ee2c7866194fa75a3dd060e7c92b57713b03609c /src/main | |
| parent | 7659939d3c80bc3bdd2c501f59035a6ab7dc6b13 (diff) | |
| parent | c2dd450579e705df89e458cecc40530227504d3f (diff) | |
Merge pull request #41 from CCC-MF/issue_39
feat: add cache-control headers for static resources
Diffstat (limited to 'src/main')
| -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 |
