fdsfds
This commit is contained in:
parent
d14c3e9bdc
commit
79669fda6a
1 changed files with 0 additions and 1 deletions
|
@ -265,7 +265,6 @@ def static_service(path):
|
||||||
@app.get('/hostedimages/<path:path>')
|
@app.get('/hostedimages/<path:path>')
|
||||||
@limiter.exempt
|
@limiter.exempt
|
||||||
def images(path):
|
def images(path):
|
||||||
print('wtf')
|
|
||||||
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.remove("Cache-Control")
|
||||||
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue