This commit is contained in:
Aevann1 2021-12-11 19:48:43 +02:00
parent d14c3e9bdc
commit 79669fda6a

View file

@ -265,7 +265,6 @@ def static_service(path):
@app.get('/hostedimages/<path:path>')
@limiter.exempt
def images(path):
print('wtf')
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")