perf: renderBaseでCache-Controlを15秒から300秒に
This commit is contained in:
parent
cd1f2adca7
commit
a486716520
2 changed files with 8 additions and 1 deletions
|
@ -337,7 +337,7 @@ export class ClientServerService {
|
|||
|
||||
const renderBase = async (reply: FastifyReply) => {
|
||||
const meta = await this.metaService.fetch();
|
||||
reply.header('Cache-Control', 'public, max-age=15');
|
||||
reply.header('Cache-Control', 'public, max-age=300');
|
||||
return await reply.view('base', {
|
||||
img: meta.bannerUrl,
|
||||
title: meta.name ?? 'Misskey',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue