Disable that pesky browser cache in the ways that matter.

This commit is contained in:
jakedt 2014-03-26 18:36:59 -04:00
parent 95dcf58b90
commit 910fabe103
3 changed files with 14 additions and 7 deletions

View file

@ -29,6 +29,6 @@ def no_cache(f):
@wraps(f)
def add_no_cache(*args, **kwargs):
response = f(*args, **kwargs)
response.headers['Cache-Control'] = 'no-cache'
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
return response
return add_no_cache