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'):