This commit is contained in:
Aevann1 2021-12-11 19:44:29 +02:00
parent b4690f43dd
commit 6405cff123
2 changed files with 2 additions and 1 deletions

View file

@ -265,6 +265,7 @@ 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")