Cache extra AP objects (#6349)

* Cache extra AP objects

* Cache nodeinfo
This commit is contained in:
MeiMei
2020-05-15 21:37:09 +09:00
committed by GitHub
parent 6667b86650
commit 36fcc0d5f6
5 changed files with 6 additions and 5 deletions

View File

@@ -82,7 +82,6 @@ export default async (ctx: Router.RouterContext) => {
);
ctx.body = renderActivity(rendered);
ctx.set('Cache-Control', 'private, max-age=0, must-revalidate');
setResponseType(ctx);
} else {
// index page
@@ -91,7 +90,7 @@ export default async (ctx: Router.RouterContext) => {
`${partOf}?page=true&since_id=000000000000000000000000`
);
ctx.body = renderActivity(rendered);
ctx.set('Cache-Control', 'private, max-age=0, must-revalidate');
ctx.set('Cache-Control', 'public, max-age=180');
setResponseType(ctx);
}
};