From 91d32acfdce7410ae9e5ff6f30b8a9ff91512884 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 7 May 2025 10:53:59 +0200 Subject: HTTP Cache-Control immutable (#7552) Start using `Cache-Control: immutable` for some resources served with a timestamp. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control#immutable The `` directive requires Apache 2.4+ --- p/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'p') diff --git a/p/.htaccess b/p/.htaccess index e7376e46e..e6d024c5e 100644 --- a/p/.htaccess +++ b/p/.htaccess @@ -39,6 +39,11 @@ AddDefaultCharset UTF-8 Header merge Cache-Control "public" + # If you run an old Apache 2.2-, comment out the following section + + # For requests like `frss.css?1746304092` + Header merge Cache-Control "immutable" + Header edit Set-Cookie ^(.*)$ "$1; SameSite=Lax" -- cgit v1.2.3