This commit is contained in:
Aevann1 2021-08-31 16:55:34 +02:00
parent 9f69e67fcc
commit 32c29f39e7
48 changed files with 10 additions and 10 deletions

View file

@ -155,7 +155,7 @@ def static_service(path):
resp = make_response(send_from_directory('./assets', path))
if request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=31556952")
resp.headers.add("Cache-Control", "public, max-age=2628000")
return resp