From e005b8b06ba639ddc202f7657f11625e7923b47a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Dec 2021 20:46:20 +0200 Subject: [PATCH] fdsfd --- files/routes/static.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index 58b13a41fc..f29a8b4114 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -262,10 +262,11 @@ def static_service(path): return resp @app.get('/images/') +@app.get('/IMAGES/') @app.get('/hostedimages/') @limiter.exempt def images(path): - resp = make_response(send_from_directory('/images', path)) + 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'):