Skip to content

Commit 4f884a4

Browse files
Mise à jour du service worker
1 parent 69d8420 commit 4f884a4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

2025/src/js/service-worker.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
const CACHE_NAME = 'sotm-2025';
2-
const urlsToCache = [
3-
'/',
4-
'index.html',
5-
'/css/main.css',
6-
'/js/main.js'
7-
];
2+
const urlsToCache = '/';
83

94
// Install event
105
self.addEventListener('install', (event) => {
116
event.waitUntil(
127
caches.open(CACHE_NAME).then((cache) => {
13-
return cache.addAll(urlsToCache);
8+
return cache.add(urlsToCache);
149
})
1510
);
1611
});

0 commit comments

Comments
 (0)