fix: wrong format on test method

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-10 14:43:33 +02:00
parent eb92447b73
commit 51c3afad46

View File

@ -40,7 +40,7 @@ workbox.routing.registerRoute(
'https://jspm.dev', 'https://jspm.dev',
'https://fonts.googleapis.com', 'https://fonts.googleapis.com',
'https://cdn.startinblox.com' 'https://cdn.startinblox.com'
].includes(url.origin) || url.origin.test(/cdn/), ].includes(url.origin) || /cdn/.test(url.origin),
new workbox.strategies.StaleWhileRevalidate({ new workbox.strategies.StaleWhileRevalidate({
cacheName: 'cdn', cacheName: 'cdn',
}) })