Update app.py

This commit is contained in:
gru
2026-02-05 13:14:58 +01:00
parent 9e6d280b05
commit b31e085d59

2
app.py
View File

@@ -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