Add No cache headers

This commit is contained in:
Jonatan Rek 2025-01-21 13:02:38 +01:00
parent 4064590b6e
commit 220d632e7b

3
app.py
View File

@ -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"))