diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2022-05-29 10:58:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-29 10:58:54 +0900 |
| commit | f1d2398eacbc69a14d09ebe5e7040be891f9e143 (patch) | |
| tree | bc86bdba607dff72841b835559fc7805bcb41f19 /packages/backend/src/server/web/index.ts | |
| parent | preload app css (#8752) (diff) | |
| download | misskey-f1d2398eacbc69a14d09ebe5e7040be891f9e143.tar.gz misskey-f1d2398eacbc69a14d09ebe5e7040be891f9e143.tar.bz2 misskey-f1d2398eacbc69a14d09ebe5e7040be891f9e143.zip | |
fix(client): Vite related boot mechanism revision (#8753)
* preload app css
* remove salt
* APP_FETCH_FAILED error
* set max-age to 15s
Diffstat (limited to 'packages/backend/src/server/web/index.ts')
| -rw-r--r-- | packages/backend/src/server/web/index.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index 0b2c62c044..2feee72be7 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -247,7 +247,7 @@ router.get(['/@:user', '/@:user/:sub'], async (ctx, next) => { icon: meta.iconUrl, themeColor: meta.themeColor, }); - ctx.set('Cache-Control', 'public, max-age=30'); + ctx.set('Cache-Control', 'public, max-age=15'); } else { // リモートユーザーなので // モデレータがAPI経由で参照可能にするために404にはしない @@ -292,7 +292,7 @@ router.get('/notes/:note', async (ctx, next) => { themeColor: meta.themeColor, }); - ctx.set('Cache-Control', 'public, max-age=180'); + ctx.set('Cache-Control', 'public, max-age=15'); return; } @@ -329,7 +329,7 @@ router.get('/@:user/pages/:page', async (ctx, next) => { }); if (['public'].includes(page.visibility)) { - ctx.set('Cache-Control', 'public, max-age=180'); + ctx.set('Cache-Control', 'public, max-age=15'); } else { ctx.set('Cache-Control', 'private, max-age=0, must-revalidate'); } @@ -360,7 +360,7 @@ router.get('/clips/:clip', async (ctx, next) => { themeColor: meta.themeColor, }); - ctx.set('Cache-Control', 'public, max-age=180'); + ctx.set('Cache-Control', 'public, max-age=15'); return; } @@ -385,7 +385,7 @@ router.get('/gallery/:post', async (ctx, next) => { themeColor: meta.themeColor, }); - ctx.set('Cache-Control', 'public, max-age=180'); + ctx.set('Cache-Control', 'public, max-age=15'); return; } @@ -409,7 +409,7 @@ router.get('/channels/:channel', async (ctx, next) => { themeColor: meta.themeColor, }); - ctx.set('Cache-Control', 'public, max-age=180'); + ctx.set('Cache-Control', 'public, max-age=15'); return; } @@ -468,7 +468,7 @@ router.get('(.*)', async ctx => { icon: meta.iconUrl, themeColor: meta.themeColor, }); - ctx.set('Cache-Control', 'public, max-age=300'); + ctx.set('Cache-Control', 'public, max-age=15'); }); // Register router |