Adding font and lone external image to the service worker cache
This commit is contained in:
parent
692b9fa2df
commit
e5e6f1d0c8
@ -16,7 +16,21 @@ module.exports = [
|
||||
}),
|
||||
new WorkboxPlugin({
|
||||
clientsClaim: true,
|
||||
skipWaiting: true
|
||||
skipWaiting: true,
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: new RegExp('https://licensebuttons.net'),
|
||||
handler: 'staleWhileRevalidate'
|
||||
},
|
||||
{
|
||||
urlPattern: new RegExp('http://fonts.googleapis.com'),
|
||||
handler: 'staleWhileRevalidate'
|
||||
},
|
||||
{
|
||||
urlPattern: new RegExp('http://fonts.gstatic.com'),
|
||||
handler: 'staleWhileRevalidate'
|
||||
}
|
||||
]
|
||||
})
|
||||
]
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user