1importScripts("/common_c/docs/precache-manifest/ym-manifest.2018101507.js", "https://storage.googleapis.com/workbox-cdn/releases/3.3.1/workbox-sw.js"); 2 3if (location.hostname != 'www.ymobile.jp'){ 4 workbox.setConfig({debug: true}); 5} 6workbox.core.setCacheNameDetails({prefix: "ym-web-2018-09-11-2"}); 7 8workbox.skipWaiting(); 9workbox.clientsClaim(); 10 11workbox.precaching.suppressWarnings(); 12workbox.precaching.precacheAndRoute(self.__precacheManifest, { 13 "directoryIndex": "index.html" 14}); 15 16 17//ç»é²æ¸ã¿ã®ãã£ãã·ã¥ãã¯ãªã¢ãã 18caches.keys().then(function(keys) { 19 var promises = []; 20 // ãã£ãã·ã¥ã¹ãã¬ã¼ã¸ãå ¨ã¦åé¤ãã 21 keys.forEach(function(cacheName) { 22 if (cacheName) { 23 promises.push(caches.delete(cacheName)); 24 } 25 }); 26}); 27 28//HTMLã®ãã£ãã·ã¥ãã³ã¡ã³ãã¢ã¦ã 29/* 30workbox.routing.registerRoute( 31 //ã¹ã©ãã·ã¥åºåãã§htmlããã£ãã·ã¥ãããããã«ä¸è¦ãªãã¡ã¤ã«ã®æ¡å¼µåãé¤å¤ãã¦ãã 32 /^((?!.png|gif|jpg|jpeg|svg|js|css|json|xml|icon|ogg|bmp|webp|mp4|ogg|webm).)+$/, 33 workbox.strategies.staleWhileRevalidate({ 34 cacheName: 'html-cache', 35 plugins: [
36 new workbox.cacheableResponse.Plugin({ 37 "statuses":[0,200] 38 })], 39 "cacheExpiration": { 40 "maxAgeSeconds": 30 * 24 * 60 * 60 41 } 42 }), 'GET'); 43*/ 44
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.