diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-05-15 21:37:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-15 21:37:09 +0900 |
| commit | 36fcc0d5f6e180ed380434a121026505a523f49b (patch) | |
| tree | 04e1701f6773384786f2e197684a637151c675f9 /src/server/nodeinfo.ts | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-36fcc0d5f6e180ed380434a121026505a523f49b.tar.gz misskey-36fcc0d5f6e180ed380434a121026505a523f49b.tar.bz2 misskey-36fcc0d5f6e180ed380434a121026505a523f49b.zip | |
Cache extra AP objects (#6349)
* Cache extra AP objects
* Cache nodeinfo
Diffstat (limited to 'src/server/nodeinfo.ts')
| -rw-r--r-- | src/server/nodeinfo.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/nodeinfo.ts b/src/server/nodeinfo.ts index 442e946df3..b0de850dd0 100644 --- a/src/server/nodeinfo.ts +++ b/src/server/nodeinfo.ts @@ -81,6 +81,7 @@ router.get(nodeinfo2_1path, async ctx => { const base = await nodeinfo2(); ctx.body = { version: '2.1', ...base }; + ctx.set('Cache-Control', 'public, max-age=600'); }); router.get(nodeinfo2_0path, async ctx => { @@ -89,6 +90,7 @@ router.get(nodeinfo2_0path, async ctx => { delete base.software.repository; ctx.body = { version: '2.0', ...base }; + ctx.set('Cache-Control', 'public, max-age=600'); }); export default router; |