Modification site web

This commit is contained in:
Guillaume-Sanchez
2026-06-29 23:44:32 +02:00
parent 27f53835c2
commit ae80490684
13 changed files with 1357 additions and 750 deletions
+12
View File
@@ -0,0 +1,12 @@
const CACHE = 'safeaccess-v1';
const ASSETS = ['/', '/index.html', '/manifest.json'];
self.addEventListener('install', e => {
e.waitUntil(caches.open(CACHE).then(c => c.addAll(ASSETS)));
});
self.addEventListener('fetch', e => {
e.respondWith(
caches.match(e.request).then(r => r || fetch(e.request)).catch(() => caches.match('/index.html'))
);
});