add default cache

This commit is contained in:
Yannik Schmidt
2021-07-06 14:39:16 +02:00
parent 8187625b52
commit 2347d573e8

View File

@@ -104,6 +104,8 @@ def sendPicture(path):
cacheTimeout = flask.request.args.get("ct")
if cacheTimeout:
response.headers['Cache-Control'] = "max-age=" + str(cacheTimeout)
else:
response.headers['Cache-Control'] = "max-age=" + "3600"
return response