From c2dd450579e705df89e458cecc40530227504d3f Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 19 Feb 2024 08:54:38 +0100 Subject: [PATCH] feat: add cache-control headers for static resources --- src/main/resources/application.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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