kopia lustrzana https://git.sr.ht/~tsileo/microblog.pub
Add cache header for AP response
rodzic
d5f25e37cf
commit
d3f2d61daf
|
@ -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",
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue