Update app.py
This commit is contained in:
2
app.py
2
app.py
@@ -77,6 +77,8 @@ def add_header(response):
|
||||
if request.path.startswith('/static/'):
|
||||
response.cache_control.max_age = 31536000
|
||||
response.cache_control.public = True
|
||||
response.headers.pop('Content-Disposition', None)
|
||||
|
||||
else:
|
||||
response.cache_control.no_cache = True
|
||||
response.cache_control.no_store = True
|
||||
|
||||
Reference in New Issue
Block a user