Closed Shyam-Chen closed 7 years ago
@Shyam-Chen did you figure out the solution? Having the same issue.
Change to Workbox.
// ...
const { GenerateSW } = require('workbox-webpack-plugin');
// ...
new GenerateSW({
skipWaiting: true,
clientsClaim: true,
runtimeCaching: [{
urlPattern: new RegExp(env.SITE_URL),
handler: 'staleWhileRevalidate',
}],
navigateFallback: '/',
navigateFallbackWhitelist: [/^(?!\/__).*/],
cacheId: pkg.name,
}),
// ...
https://github.com/GoogleChrome/sw-precache/blob/master/app-shell-demo/gulpfile.babel.js#L140
http://localhost:8000/list <- 404