remotes/1693045480750635534/spooky-22
Aevann1 2021-10-03 21:10:44 +02:00
parent 71cc85e02b
commit ef018428e2
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -5,7 +5,6 @@ __pycache__/
*$py.class
chart.png
video.mp4
hostedimages/
# C extensions
*.so

View File

@ -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