WIP: Secure mode #31
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ router.get('/emojis/:emoji', async ctx => {
|
|||
ctx.body = renderActivity(await renderEmoji(emoji));
|
||||
const meta = await fetchMeta();
|
||||
if (meta.secureMode || meta.privateMode) {
|
||||
ctx.set('Cache-Control', 'private, max-age=0, must-revalidate');
|
||||
ctx.set('Cache-Control', 'no-store');
|
||||
} else {
|
||||
ctx.set('Cache-Control', 'public, max-age=180');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue