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(
|
return Response(
|
||||||
response=json.dumps(data),
|
response=json.dumps(data),
|
||||||
headers={
|
headers={
|
||||||
|
"Cache-Control": "max-age=0, private, must-revalidate",
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
if app.debug
|
if app.debug
|
||||||
else "application/activity+json"
|
else "application/activity+json",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue