URLをsw.jsに戻す
This commit is contained in:
parent
6e19ca8b22
commit
312f46378d
2 changed files with 4 additions and 3 deletions
|
|
@ -101,9 +101,10 @@ router.get('/twemoji/(.*)', async ctx => {
|
|||
});
|
||||
|
||||
// ServiceWorker
|
||||
router.get(`/sw.${config.version}.js`, async ctx => {
|
||||
router.get(`/sw.js`, async ctx => {
|
||||
await send(ctx as any, `/sw.js`, {
|
||||
root: swAssets,
|
||||
maxage: ms('10 minutes'),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue