dfssf
This commit is contained in:
parent
90aecd8712
commit
7b3591534f
2 changed files with 1 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,7 +5,6 @@ __pycache__/
|
|||
*$py.class
|
||||
chart.png
|
||||
video.mp4
|
||||
hostedimages/
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
|
|
@ -254,7 +254,7 @@ def static_service(path):
|
|||
@app.get('/hostedimages/<path:path>')
|
||||
@limiter.exempt
|
||||
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.add("Cache-Control", "public, max-age=2628000")
|
||||
return resp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue