[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Set "Cache-Control: no-cache" in facilitator client responses.



commit f6cd763b28da36f7e00479033e2e6993a7616253
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sun Jul 10 01:27:25 2011 -0700

    Set "Cache-Control: no-cache" in facilitator client responses.
    
    Flash Player on Internet Explorer appears to use the browser cache,
    getting stale facilitator results.
---
 facilitator.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/facilitator.py b/facilitator.py
index 4d08673..eaad855 100755
--- a/facilitator.py
+++ b/facilitator.py
@@ -291,6 +291,7 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
             client_str = ""
         self.send_response(200)
         self.send_header("Content-Type", "x-www-form-urlencoded")
+        self.send_header("Cache-Control", "no-cache")
         self.end_headers()
 
         data = {}

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits