Add cache header for AP response

This commit is contained in:
Thomas Sileo 2019-08-18 18:41:14 +02:00
parent d5f25e37cf
commit d3f2d61daf

View file

@ -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",
},
)