mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 18:34:21 +02:00
Better exclusion for non-critical assets caching in service worker
This commit is contained in:
parent
9b98e8773d
commit
5f0b8cab53
2 changed files with 7 additions and 11 deletions
|
@ -63,6 +63,12 @@ module.exports = {
|
|||
// swSrc is required in InjectManifest mode.
|
||||
swSrc: 'src/service-worker.js',
|
||||
swDest: 'service-worker.js',
|
||||
exclude: [
|
||||
new RegExp('js/locale.*'),
|
||||
new RegExp('js/moment-locale.*'),
|
||||
new RegExp('js/admin.*'),
|
||||
new RegExp('css/admin.*'),
|
||||
]
|
||||
},
|
||||
iconPaths: {
|
||||
favicon32: 'favicon.png',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue