Add cache header for AP response
This commit is contained in:
@@ -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",
|
||||
},
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user