From 0a1de4558611c05f798b654c9e785e7e2732d3ea Mon Sep 17 00:00:00 2001 From: Marco0300 Date: Fri, 4 Sep 2026 23:09:46 +0200 Subject: [PATCH] add s-maxage=0 to cache-control header --- apps/web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/server.py b/apps/web/server.py index 6b05bed..237650d 100644 --- a/apps/web/server.py +++ b/apps/web/server.py @@ -116,7 +116,7 @@ class ProxyStaticHandler(SimpleHTTPRequestHandler): self.send_header("Content-Type", ctype) self.send_header("Content-Length", content_length) if "text/html" in ctype or "text/javascript" in ctype or "application/javascript" in ctype: - self.send_header("Cache-Control", "no-cache, no-store, must-revalidate") + self.send_header("Cache-Control", "no-cache, no-store, must-revalidate, s-maxage=0") self.send_header("Pragma", "no-cache") self.send_header("Expires", "0") self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))