Open ghost opened 7 years ago
Yup, SW overrides the network cache in a way by adding an extra developer-controlled cache in between. You need to handle this in your applications Service Worker or remove the SW if you don't want to handle the client-side application caching manually.
@Garbee Is there a way I can exclude certain html files from the caching? Is the following a right way to do this?
staticFileGlobs: [
// Add/remove glob patterns to match your directory setup.
${rootDir}/images/**/*
,
${rootDir}/scripts/**/*.js
,
${rootDir}/styles/**/*.css
,
// ${rootDir}/*.{html,json}
],
Even with the following in the HTML files, it is cached. I think, the service-worker.js is causing this issue.