runtimeCaching network first then cache
MuzammilRafay opened this issue · 2 comments
MuzammilRafay commented
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'
}
],
carlesjavierre commented
Did you try with
handler: 'networkFirst'
It happened to work for me.
goldhand commented
Closing: unable to reproduce