From be0642c38958d6c60a38bc7fb196ce6eea855a9f Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Mon, 2 Feb 2026 17:52:41 -0600 Subject: [PATCH] reduce caching --- caddy/Caddyfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index b2f5208..3595867 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -25,6 +25,14 @@ www.bizmatch.net { root * /home/aknuth/git/bizmatch-project/bizmatch-server # Prod-Ordner file_server } + # Statische Dateien (CSS, JS, Bilder) – lange cachen, da sich der Name bei Änderungen ändert + header /assets/* Cache-Control "public, max-age=31536000, immutable" + header /*.css Cache-Control "public, max-age=31536000, immutable" + header /*.js Cache-Control "public, max-age=31536000, immutable" + + # Die index.html und API-Antworten – NIEMALS cachen + header /index.html Cache-Control "no-cache, no-store, must-revalidate" + #handle { # root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner # try_files {path} {path}/ /index.html