fdssfd
This commit is contained in:
parent
b4690f43dd
commit
6405cff123
2 changed files with 2 additions and 1 deletions
|
@ -265,6 +265,7 @@ def static_service(path):
|
|||
@app.get('/hostedimages/<path:path>')
|
||||
@limiter.exempt
|
||||
def images(path):
|
||||
print('wtf')
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue