Add No cache headers
This commit is contained in:
parent
4064590b6e
commit
220d632e7b
3
app.py
3
app.py
@ -48,6 +48,9 @@ class ProxyHandler(http.server.BaseHTTPRequestHandler):
|
|||||||
if (starting == True):
|
if (starting == True):
|
||||||
self.send_response(201)
|
self.send_response(201)
|
||||||
self.send_header('Content-Type', 'text/plain')
|
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.send_header('refresh', proxy_host_configuration['proxy_timeout_seconds'])
|
||||||
self.end_headers()
|
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"))
|
self.wfile.write(bytes("starting container: {0} waiting for {1}s".format(container['container_name'], proxy_host_configuration['proxy_timeout_seconds']),"utf-8"))
|
||||||
|
Loading…
Reference in New Issue
Block a user