1 2const CACHE = "pwa0.0.1"; 3self.addEventListener('install', function(event) { 4 var indexPage = new Request('index.php'); 5 event.waitUntil(fetch(indexPage).then(function(response) { 6 var response2 = response.clone(); 7 return caches.open(CACHE).then(function(cache) { 8 return cache.put(indexPage, response2) 9 }) 10 })) 11}); 12 13self.addEventListener('fetch', function (event) { 14 event.respondWith( 15 fetch(event.request).then(function(networkResponse) { 16 return networkResponse 17 }) 18 ) 19})
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.