From 47dae688aab27dad6a8aa00a51146c7dec88eff0 Mon Sep 17 00:00:00 2001 From: spez Date: Mon, 9 Feb 2009 17:11:54 -0800 Subject: [PATCH] try and prevent akamai from caching sup.json --- r2/r2/lib/sup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r2/r2/lib/sup.py b/r2/r2/lib/sup.py index 97c3d97b3..bdf2854b5 100644 --- a/r2/r2/lib/sup.py +++ b/r2/r2/lib/sup.py @@ -108,4 +108,6 @@ def set_sup_header(user, action): def set_expires_header(): seconds = make_cur_time(MIN_PERIOD) + MIN_PERIOD expire_time = datetime.fromtimestamp(seconds, g.tz) - c.response.headers['expires'] = http_date_str(expire_time) + #c.response.headers['expires'] = http_date_str(expire_time) + c.response.headers['Cache-Control'] = 'no-cache' + c.response.headers['Pragma'] = 'no-cache'