From ca5794ba18300f413febbdaa73486c11d787d5ea Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 14 Apr 2016 15:40:42 -0400 Subject: [PATCH] key server: use total_seconds() for cache headers --- endpoints/key_server.py | 1 - 1 file changed, 1 deletion(-) diff --git a/endpoints/key_server.py b/endpoints/key_server.py index cc4873a60..6ea3839c9 100644 --- a/endpoints/key_server.py +++ b/endpoints/key_server.py @@ -90,7 +90,6 @@ def get_service_key(service, kid): resp = jsonify(key.jwk) - # Set the cache header to be a year for non-expiring keys. lifetime = timedelta(days=365) if key.expiration_date is not None: lifetime = key.expiration_date - key.created_date