summaryrefslogtreecommitdiff
path: root/src/server/activitypub.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-11-22 23:17:58 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-11-22 23:17:58 +0900
commit653ec0cbb0cb1a14d0f48b4d10b91007e8876be8 (patch)
treedf1049a8e53e15ed170708eef0799c63159d98cd /src/server/activitypub.ts
parentUpdate systeminformation requirement from 3.47.0 to 3.49.3 (#3374) (diff)
downloadsharkey-653ec0cbb0cb1a14d0f48b4d10b91007e8876be8.tar.gz
sharkey-653ec0cbb0cb1a14d0f48b4d10b91007e8876be8.tar.bz2
sharkey-653ec0cbb0cb1a14d0f48b4d10b91007e8876be8.zip
No cache /notes/:note (#3382)
Diffstat (limited to 'src/server/activitypub.ts')
-rw-r--r--src/server/activitypub.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts
index 888feb08ce..0d4e244856 100644
--- a/src/server/activitypub.ts
+++ b/src/server/activitypub.ts
@@ -76,7 +76,7 @@ router.get('/notes/:note', async (ctx, next) => {
}
ctx.body = pack(await renderNote(note, false));
- ctx.set('Cache-Control', 'public, max-age=180');
+ ctx.set('Cache-Control', 'private, max-age=0, must-revalidate');
setResponseType(ctx);
});