From 09eea17c4ec773da7e61cd5a471990f1606e5709 Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Mon, 27 Apr 2026 13:05:13 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Cache-Control-Header=20f=C3=BCr=20PHP=20?= =?UTF-8?q?(no-cache)=20und=20Assets=20(immutable)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apache/steuerkram.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apache/steuerkram.conf b/apache/steuerkram.conf index 25b345d..78217e0 100644 --- a/apache/steuerkram.conf +++ b/apache/steuerkram.conf @@ -19,6 +19,16 @@ Require all denied + # HTML-Seiten nie cachen (damit neue ?v=-URLs sofort wirken) + + Header set Cache-Control "no-cache, must-revalidate" + + + # Statische Assets aggressiv cachen (Cache-Busting via ?v= in der URL) + + Header set Cache-Control "public, max-age=31536000, immutable" + + ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined