fdsfds
This commit is contained in:
parent
2868c8e285
commit
bdc2c16c44
5 changed files with 25 additions and 25 deletions
|
@ -265,7 +265,7 @@ def static_service(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…
Add table
Add a link
Reference in a new issue