mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
try and prevent akamai from caching sup.json
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user