From d3f2d61dafccfc4fb7e90cfe2b865779a69fab1f Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 18 Aug 2019 18:41:14 +0200 Subject: [PATCH] Add cache header for AP response --- core/shared.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/shared.py b/core/shared.py index 7583614..5d24198 100644 --- a/core/shared.py +++ b/core/shared.py @@ -49,9 +49,10 @@ def jsonify(**data): return Response( response=json.dumps(data), headers={ + "Cache-Control": "max-age=0, private, must-revalidate", "Content-Type": "application/json" if app.debug - else "application/activity+json" + else "application/activity+json", }, )