perf: renderBaseでCache-Controlを300秒から30秒に
This commit is contained in:
parent
deed25a2ff
commit
f80bf1fb1c
|
@ -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
|
||||
-
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue