Skip to content

Commit

Permalink
Disable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Keller253 committed Feb 12, 2024
1 parent 22828de commit b68c820
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CyclingApp/wwwroot/service-worker.published.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ 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 offlineAssetsInclude = [/\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/];
const offlineAssetsExclude = [/^service-worker\.js$/];

// Replace with your base path if you are hosting on a subfolder. Ensure there is a trailing '/'.
const base = "/";
Expand Down Expand Up @@ -51,5 +51,5 @@ async function onFetch(event) {
cachedResponse = await cache.match(request);
}

return cachedResponse || fetch(event.request);
return /*cachedResponse ||*/ fetch(event.request);
}

0 comments on commit b68c820

Please sign in to comment.