diff --git a/requirements.txt b/requirements.txt index be19d1a..914288c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -Flask>=1.1.0 +Flask>=2.0.0 maxminddb>=2.0.0 diff --git a/server.py b/server.py index d3da93a..5c30d50 100755 --- a/server.py +++ b/server.py @@ -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")