This commit is contained in:
Aevann1 2021-08-23 12:24:20 +02:00
parent 959f54d80c
commit 65db9b63a5
4 changed files with 3 additions and 3 deletions

View file

@ -138,7 +138,7 @@ def static_service(path):
resp.headers.add("Content-Type", "text/css")
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=86400")
elif request.path.endswith('.gif') or request.path.endswith('.png') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
elif 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")