forked from rDrama/rDrama
fdsfds
parent
3a6334d977
commit
5d5c2a9ed4
|
@ -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…
Reference in New Issue