Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
339
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
29
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TransFem.org
Sharkey
Commits
a4867165
Commit
a4867165
authored
2 years ago
by
tamaina
Browse files
Options
Downloads
Patches
Plain Diff
perf: renderBaseでCache-Controlを15秒から300秒に
parent
cd1f2adc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+7
-0
7 additions, 0 deletions
CHANGELOG.md
packages/backend/src/server/web/ClientServerService.ts
+1
-1
1 addition, 1 deletion
packages/backend/src/server/web/ClientServerService.ts
with
8 additions
and
1 deletion
CHANGELOG.md
+
7
−
0
View file @
a4867165
...
...
@@ -8,6 +8,13 @@
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)
...
...
This diff is collapsed.
Click to expand it.
packages/backend/src/server/web/ClientServerService.ts
+
1
−
1
View file @
a4867165
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment