Disable that pesky browser cache in the ways that matter.
This commit is contained in:
parent
95dcf58b90
commit
910fabe103
3 changed files with 14 additions and 7 deletions
|
@ -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
|
||||
|
|
Reference in a new issue