1// https://developers.google.com/web/ilt/pwa/introduction-to-service-worker 2// https://developer.mozilla.org/fr/docs/Web/Progressive_web_apps 3self.addEventListener('fetch', function (event) { 4 event.respondWith(caches.match(event.request).then(function (response) { 5 return response || fetch(event.request); 6 }).catch(function (e) { 7 console.log(e); 8 9 // Si on ne renvoie rien ça bloque certaines requetes comme mondial relay 10 return new Response('', { 11 status: 503, 12 statusText: 'Service Unavailable' 13 }); 14 })); 15});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.