mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 08:11:35 +01:00
set default cache ttl for static content
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user