This commit is contained in:
Aevann1 2022-03-31 19:16:13 +02:00
parent d5f294db77
commit 3ee59794a2
14 changed files with 33 additions and 33 deletions

View file

@ -357,7 +357,7 @@ def emoji(emoji):
@limiter.exempt
def static_service(path):
resp = make_response(send_from_directory('assets', path))
if request.path.endswith('.webp') or request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
if request.path.endswith('.webp') or request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff2'):
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=3153600")