use max_age instead of cache_timeout (for flask > 2.0)
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
Flask>=1.1.0
|
Flask>=2.0.0
|
||||||
maxminddb>=2.0.0
|
maxminddb>=2.0.0
|
||||||
|
|||||||
@@ -54,8 +54,7 @@ def index():
|
|||||||
def list():
|
def list():
|
||||||
# We have to make sure that the list isn't cached,
|
# We have to make sure that the list isn't cached,
|
||||||
# since the list isn't really static.
|
# since the list isn't really static.
|
||||||
return send_from_directory(app.static_folder, "list.json",
|
return send_from_directory(app.static_folder, "list.json", max_age=0)
|
||||||
cache_timeout=0)
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/geoip")
|
@app.route("/geoip")
|
||||||
|
|||||||
Reference in New Issue
Block a user