1self.addEventListener('install', (event) => { 2 event.waitUntil( 3 (async () => { 4 const cache = await caches.open('v1'); 5 const filesToCache = [ 6 '/', 7 '/index.php', 8 '/css/styles.css', 9 '/css/bootstrap.min.css', 10 '/css/slick.css', 11 '/css/animate.css', 12 '/css/responsive.css', 13 "/js/jquery-3.2.1.min.js", 14 "/js/bootstrap.min.js", 15 "/js/jquery.stellar.min.js", 16 "/js/fontawesome-all.js", 17 "/js/modernizr.custom.js", 18 "/js/jquery.easing.js", 19 "/js/jquery.scrollto.js", 20 "/js/jquery.appear.js", 21 "/js/slick.min.js", 22 "/js/jquery.magnific-popup.min.js", 23 "/js/jquery.ajaxchimp.min.js", 24 "/js/contact-form.js", 25 "/js/quick-form.js", 26 "/js/comment-form.js", 27 "/js/jquery.validate.min.js", 28 "/js/custom.js", 29 '/icons/android-icon-72x72.png', 30 '/icons/android-icon-48x48.png', 31 '/icons/android-icon-96x96.png', 32 '/icons/android-icon-192x192.png', 33 '/icons/android-icon-144x144.png' 34 ]; 35 for (const file of filesToCache) { 36 try { 37 await cache.add(file); 38 console.log('Cached:', file); 39 } catch (err) { 40 console.warn('Failed to cache:', file, err); 41 } 42 } 43 }) 44 ); 45}); 46 47self.addEventListener('fetch', (event) => { 48 event.respondWith( 49 caches.match(event.request).then((response) => { 50 return response || fetch(event.request); 51 }) 52 ); 53});
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.