Add No cache headers
This commit is contained in:
		
							
								
								
									
										3
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								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"))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user