set default cache ttl for static content

This commit is contained in:
Yannik Schmidt
2020-08-31 18:59:56 +02:00
parent 8f7d1efc74
commit 94123ece74

View File

@@ -229,7 +229,7 @@ def news():
@app.route("/static/<path:path>") @app.route("/static/<path:path>")
def sendStatic(path): def sendStatic(path):
cache_timeout = None cache_timeout = 2592000
return flask.send_from_directory('static', path, cache_timeout=cache_timeout) return flask.send_from_directory('static', path, cache_timeout=cache_timeout)
def generatePicture(pathToOrig, scaleX, scaleY, encoding): def generatePicture(pathToOrig, scaleX, scaleY, encoding):