Add sw caching for logo/favicon.
This commit is contained in:
parent
a2afdb0b4d
commit
904c149ed1
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ module.exports = {
|
|||
workboxOptions: {
|
||||
navigateFallback: 'index.html',
|
||||
skipWaiting: true,
|
||||
importWorkboxFrom: 'local'
|
||||
importWorkboxFrom: 'local',
|
||||
runtimeCaching: [{
|
||||
urlPattern: /\.(?:png|svg|ico)$/,
|
||||
handler: 'CacheFirst',
|
||||
}],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue