remotes/1693045480750635534/spooky-22
Aevann1 2021-12-11 19:42:34 +02:00
parent ce65bfbd0e
commit 391a054e69
1 changed files with 1 additions and 2 deletions

View File

@ -262,11 +262,10 @@ def static_service(path):
return resp
@app.get('/images/<path:path>')
@app.get('/IMAGES/<path:path>')
@app.get('/hostedimages/<path:path>')
@limiter.exempt
def images(path):
resp = make_response(send_from_directory('images', path.replace('.WEBP','.webp')))
resp = make_response(send_from_directory('./images', path.replace('.WEBP','.webp')))
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=2628000")
if request.path.endswith('.webp'):