forked from MarseyWorld/MarseyWorld
fsdfsd
parent
ce65bfbd0e
commit
391a054e69
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue