From 220d632e7bdeb15c99f6cafe95699b9f8c5a9780 Mon Sep 17 00:00:00 2001 From: Jonatan Rek Date: Tue, 21 Jan 2025 13:02:38 +0100 Subject: [PATCH] Add No cache headers --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 87ce35a..e12b72a 100644 --- a/app.py +++ b/app.py @@ -48,6 +48,9 @@ class ProxyHandler(http.server.BaseHTTPRequestHandler): if (starting == True): self.send_response(201) self.send_header('Content-Type', 'text/plain') + self.send_header('Cache-Control', 'no-cache, no-store, must-revalidate') + self.send_header('Pragma', 'no-cache') + self.send_header('Expires', '0') self.send_header('refresh', proxy_host_configuration['proxy_timeout_seconds']) self.end_headers() self.wfile.write(bytes("starting container: {0} waiting for {1}s".format(container['container_name'], proxy_host_configuration['proxy_timeout_seconds']),"utf-8"))