Im using the sw-precache-webpack-plugin for my React progressive app, on offline mode I get the Template from cacheStorage, but its not fetching the css or js. Not sure where im going wrong.
new SWPrecacheWebpackPlugin({
cacheId: 'example-app',
filename: 'sw.js',
// minify: true,
runtimeCaching: [{
urlPattern: '/',
handler: 'cacheFirst',
}],
dynamicUrlToDependencies: {
'/': ['./server/views/index.ejs'],
},
}),
I fixed the issue by adding below, this ignored the url parameters.
ignoreUrlParametersMatching: [/./],