remotes/1693045480750635534/spooky-22
Aevann1 2021-12-13 23:52:58 +02:00
parent 799fb8f9c9
commit bb7d768881
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ def archives(path):
@app.get('/static/<path:path>')
@limiter.exempt
def static_service(path):
def static_service2(path):
resp = make_response(send_from_directory('./static', 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'):
resp.headers.remove("Cache-Control")