From 20d59f782004dec073e8db939bbb38ca6c78927c Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 2 Nov 2023 21:53:23 +1100 Subject: [PATCH] fix: Set HNS address cache to 7 days --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 280043c..5a94e7f 100644 --- a/server.py +++ b/server.py @@ -70,7 +70,8 @@ def wallet(path): address = requests.get('http://100.66.107.77:8080') # Set cookie resp = make_response(address.text, 200, {'Content-Type': 'text/plain'}) - resp.set_cookie('HNS', address.text) + # Cookie should last 1 week + resp.set_cookie('HNS', address.text, max_age=604800) return resp