perf: renderBaseでCache-Controlを15秒から300秒に
This commit is contained in:
parent
cd1f2adca7
commit
a486716520
|
@ -8,6 +8,13 @@
|
||||||
|
|
||||||
You should also include the user name that made the change.
|
You should also include the user name that made the change.
|
||||||
-->
|
-->
|
||||||
|
## 13.x.x (unreleased)
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
- Server: UIのHTML(ノートなどの特別なページを除く)のキャッシュ時間を15秒から300秒に
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
-
|
||||||
|
|
||||||
## 13.5.3 (2023/02/09)
|
## 13.5.3 (2023/02/09)
|
||||||
|
|
||||||
|
|
|
@ -337,7 +337,7 @@ export class ClientServerService {
|
||||||
|
|
||||||
const renderBase = async (reply: FastifyReply) => {
|
const renderBase = async (reply: FastifyReply) => {
|
||||||
const meta = await this.metaService.fetch();
|
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', {
|
return await reply.view('base', {
|
||||||
img: meta.bannerUrl,
|
img: meta.bannerUrl,
|
||||||
title: meta.name ?? 'Misskey',
|
title: meta.name ?? 'Misskey',
|
||||||
|
|
Loading…
Reference in a new issue