Skip to content

Commit

Permalink
Update service-worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Dec 10, 2024
1 parent a596d40 commit a2152d7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/CleanAspire.ClientApp/wwwroot/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
// This is because caching would make development more difficult (changes would not
// be reflected on the first load after each change).

const CACHE_NAME = 'network-status-cache-v1';
const CACHE_NAME = 'cache-v1';
self.addEventListener('install', (event) => {
event.waitUntil(
caches.open(CACHE_NAME).then((cache) => {
return cache.addAll([
'green-point.svg',
'red-point.svg',
'loading.svg'
]);
return cache.addAll([]);
})
);
});
Expand Down

0 comments on commit a2152d7

Please sign in to comment.