diff --git a/src/BackOffice/wwwroot/service-worker.published.js b/src/BackOffice/wwwroot/service-worker.published.js index 24a9f72..1df8f82 100644 --- a/src/BackOffice/wwwroot/service-worker.published.js +++ b/src/BackOffice/wwwroot/service-worker.published.js @@ -9,7 +9,7 @@ self.addEventListener('fetch', event => event.respondWith(onFetch(event))); const cacheNamePrefix = 'offline-cache-'; const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}`; const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/ ]; -const offlineAssetsExclude = [ /^service-worker\.js$/ ]; +const offlineAssetsExclude = [ /^service-worker\.js$/, /^appsettings.*\.json$/ ]; async function onInstall(event) { console.info('Service worker: Install');