mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 14:06:05 +00:00
v2.5.0: disable web admin static cache
This commit is contained in:
@@ -572,7 +572,7 @@ class AdminHandler(BaseHTTPRequestHandler):
|
|||||||
mime = mimetypes.guess_type(str(path))[0] or "application/octet-stream"
|
mime = mimetypes.guess_type(str(path))[0] or "application/octet-stream"
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.send_header("Content-Type", mime)
|
self.send_header("Content-Type", mime)
|
||||||
self.send_header("Cache-Control", "no-store" if path.name == "index.html" else "public, max-age=3600")
|
self.send_header("Cache-Control", "no-store")
|
||||||
self.send_header("Content-Length", str(len(body)))
|
self.send_header("Content-Length", str(len(body)))
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
self.wfile.write(body)
|
self.wfile.write(body)
|
||||||
|
|||||||
Reference in New Issue
Block a user