Skip to content

Commit

Permalink
Oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrimer committed Apr 24, 2016
1 parent ae9c9c9 commit 60f34a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions common/route_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def nocache(view):
@wraps(view)
def no_cache_wrapper(*args, **kwargs):
response = make_response(view(*args, **kwargs))
# response.headers['Last-Modified'] = datetime.now()
# response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0'
# response.headers['Pragma'] = 'no-cache'
# response.headers['Expires'] = '-1'
response.headers['Last-Modified'] = datetime.now()
response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0'
response.headers['Pragma'] = 'no-cache'
response.headers['Expires'] = '-1'
return response

return no_cache_wrapper
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

setup(name='common',
version='0.1.6',
version='0.1.7',
author='Unascribed',
author_email='[email protected]',
description='Code intended to be used across Polymath Ventures repositories.',
Expand Down

0 comments on commit 60f34a3

Please sign in to comment.