self.addEventListener('install', evt=>{ self.skipWaiting(); });
self.addEventListener('activate', evt=>{ clients.claim(); });
self.addEventListener('fetch', evt=>{ evt.respondWith(caches.open('atulya-static-v1').then(cache=>cache.match(evt.request).then(resp=>resp||fetch(evt.request).then(r=>{ cache.put(evt.request,r.clone()); return r;})))); });
