1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 22:38:39 +09:00

perf: renderBaseでCache-Controlを300秒から30秒に

This commit is contained in:
tamaina 2023-02-09 08:19:12 +00:00
parent deed25a2ff
commit f80bf1fb1c
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ You should also include the user name that made the change.
## 13.x.x (unreleased)
### Improvements
- Server: UIのHTMLートなどの特別なページを除くのキャッシュ時間を15秒から300秒に
- Server: UIのHTMLートなどの特別なページを除くのキャッシュ時間を15秒から30秒に
### Bugfixes
-

View File

@ -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=300');
reply.header('Cache-Control', 'public, max-age=30');
return await reply.view('base', {
img: meta.bannerUrl,
title: meta.name ?? 'Misskey',