forked from MarseyWorld/MarseyWorld
dfssf
parent
71cc85e02b
commit
ef018428e2
|
@ -5,7 +5,6 @@ __pycache__/
|
||||||
*$py.class
|
*$py.class
|
||||||
chart.png
|
chart.png
|
||||||
video.mp4
|
video.mp4
|
||||||
hostedimages/
|
|
||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|
|
@ -254,7 +254,7 @@ def static_service(path):
|
||||||
@app.get('/hostedimages/<path:path>')
|
@app.get('/hostedimages/<path:path>')
|
||||||
@limiter.exempt
|
@limiter.exempt
|
||||||
def images(path):
|
def images(path):
|
||||||
resp = make_response(send_from_directory('./images', path))
|
resp = make_response(send_from_directory('/hostedimages', path))
|
||||||
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")
|
||||||
return resp
|
return resp
|
||||||
|
|
Loading…
Reference in New Issue