mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Reduce the number of assets cached in the service worker
This commit is contained in:
parent
bc5acc66e0
commit
db1994ce9f
1 changed files with 5 additions and 1 deletions
|
|
@ -32,8 +32,12 @@ const config = merge(common, {
|
|||
}),
|
||||
new workboxPlugin.GenerateSW({
|
||||
swDest: "service-worker.js",
|
||||
// importWorkboxFrom: "local",
|
||||
clientsClaim: true,
|
||||
skipWaiting: true
|
||||
skipWaiting: true,
|
||||
// Safari (mobile and desktop) seems to have CORs issues when loading
|
||||
// .mp3s from service workers.
|
||||
exclude: [/\.mp3/, /\.wsz/]
|
||||
})
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue