キャッシュ対策
This commit is contained in:
parent
4101d156f3
commit
469434dd9a
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ router.get('/twemoji/(.*)', async ctx => {
|
|||
});
|
||||
|
||||
// ServiceWorker
|
||||
router.get('/sw.js', async ctx => {
|
||||
router.get(`/sw.${config.version}.js`, async ctx => {
|
||||
await send(ctx as any, `/sw.js`, {
|
||||
root: swAssets,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue