1 var OFFLINE_PAGE_URL = '/offline.pwa.html'; 2 3 self.addEventListener('install', function (event) { 4 console.log('********** The service worker is being installed.'); 5 6 // Store "Offline" page 7 var offlineRequest = new Request(OFFLINE_PAGE_URL, {init: { 8 credentials: 'omit' 9 }}); 10 11 event.waitUntil( 12 fetch(offlineRequest).then(function (response) { 13 return caches.open('offline').then(function (cache) { 14 console.log('[oninstall] Cached offline page', response.url); 15 return cache.put(offlineRequest, response); 16 }); 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.