goldhand/sw-precache-webpack-plugin

runtimeCaching network first then cache

MuzammilRafay opened this issue · 2 comments

Hey i want to first check network then cache if network is not available.
any idea about this pattern in cache ???

runtimeCaching: [
{
urlPattern: /^https://fonts.googleapis.com//,
handler: 'cacheFirst'
},
{
urlPattern: /^https://www.thecocktaildb.com/images/media/drink/(\w+).jpg/,
handler: 'cacheFirst'
}
],

Did you try with

handler: 'networkFirst'

It happened to work for me.

Closing: unable to reproduce