Nouvelle version app

This commit is contained in:
Guillaume-Sanchez
2026-06-30 00:10:36 +02:00
parent 7a6f6e4176
commit 65777adb4f
5 changed files with 644 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
const CACHE_NAME = 'cyberus-cache-v3';
const urlsToCache = ['./', './index.html', './manifest.json'];
self.addEventListener('install', event => {
event.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(urlsToCache)));
});
self.addEventListener('fetch', event => {
event.respondWith(caches.match(event.request).then(response => response || fetch(event.request)));
});