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
|
||||
|
||||
@@ -54,8 +54,7 @@ def index():
|
||||
def list():
|
||||
# We have to make sure that the list isn't cached,
|
||||
# since the list isn't really static.
|
||||
return send_from_directory(app.static_folder, "list.json",
|
||||
cache_timeout=0)
|
||||
return send_from_directory(app.static_folder, "list.json", max_age=0)
|
||||
|
||||
|
||||
@app.route("/geoip")
|
||||
|
||||
Reference in New Issue
Block a user