You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using the reactboilerplate.
Guys from the community encounter trouble with the caching of the spa.
Can you help ?
The configuration is as below. I've just added the index.html file in the exclude list.
However, the index.html file keeps being served by service worker after first load of the app.
How can I disable the caching of index.html ?
// Put it in the end to capture all the HtmlWebpackPlugin's
// assets manipulations and do leak its manipulations to HtmlWebpackPlugin
new OfflinePlugin({
relativePaths: false,
publicPath: '/',
appShell: '/',
// No need to cache .htaccess. See http://mxs.is/googmp,
// this is applied before any match in `caches` section
excludes: ['.htaccess', 'index.html'],
caches: {
main: [':rest:'],
// All chunks marked as `additional`, loaded after main section
// and do not prevent SW to install. Change to `optional` if
// do not want them to be preloaded at all (cached only when first loaded)
additional: ['*.chunk.js'],
},
// Removes warning for about `additional` section usage
safeToUseOptionalCaches: true,
})
The text was updated successfully, but these errors were encountered:
Hello, I'm using the reactboilerplate.
Guys from the community encounter trouble with the caching of the spa.
Can you help ?
The configuration is as below. I've just added the index.html file in the exclude list.
However, the index.html file keeps being served by service worker after first load of the app.
How can I disable the caching of index.html ?
The text was updated successfully, but these errors were encountered: