add s-maxage=0 to cache-control header
CI / compose (push) Failing after 5m52s

This commit is contained in:
Marco0300
2026-09-04 23:09:46 +02:00
parent b5872d3e64
commit 0a1de45586
+1 -1
View File
@@ -116,7 +116,7 @@ class ProxyStaticHandler(SimpleHTTPRequestHandler):
self.send_header("Content-Type", ctype) self.send_header("Content-Type", ctype)
self.send_header("Content-Length", content_length) self.send_header("Content-Length", content_length)
if "text/html" in ctype or "text/javascript" in ctype or "application/javascript" in ctype: 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("Pragma", "no-cache")
self.send_header("Expires", "0") self.send_header("Expires", "0")
self.send_header("Last-Modified", self.date_time_string(fs.st_mtime)) self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))