Initial commit: OMSORG website + Mitarbeiter-App
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const CACHE = 'omsorg-v1';
|
||||
const STATIC = ['./app.css'];
|
||||
|
||||
self.addEventListener('install', e =>
|
||||
e.waitUntil(caches.open(CACHE).then(c => c.addAll(STATIC)))
|
||||
);
|
||||
|
||||
self.addEventListener('fetch', e => {
|
||||
if (e.request.url.endsWith('.php') || e.request.method !== 'GET') return;
|
||||
e.respondWith(
|
||||
fetch(e.request).catch(() => caches.match(e.request))
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user