mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Add cache header for AP response
This commit is contained in:
parent
d5f25e37cf
commit
d3f2d61daf
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue