1importScripts( 2 'https://storage.googleapis.com/workbox-cdn/releases/6.4.1/workbox-sw.js' 3); 4 5const {registerRoute, setDefaultHandler} = workbox.routing; 6const {CacheableResponsePlugin} = workbox.cacheableResponse; 7const {ExpirationPlugin} = workbox.expiration; 8const {precacheAndRoute} = workbox.precaching; 9const {offlineFallback} = workbox.recipes; 10 11const { 12 NetworkFirst, 13 StaleWhileRevalidate, 14 CacheFirst, 15 NetworkOnly, 16} = workbox.strategies; 17const cacheName = 'install-cache'; 18setDefaultHandler(new NetworkOnly()); 19offlineFallback(); 20 21 22// Precache the indicator/goal pages. 23self.addEventListener('install', (event) => { 24 const populateCache = async () => { 25 const cache = await caches.open(cacheName); 26 await cache.addAll(["/1/","/2/","/3/","/4/","/5/","/6/","/7/","/8/","/9/","/10/","/11/","/12/","/13/","/14/","/15/","/16/","/17/"]); 27 await cache.addAll(["/1-4-1/","/1-4-2/","/1-5-1/","/11-5-1/","/13-1-1/","/2-c-1/","/4-3-1/","/4-5-1/","/5-2-1/","/5-a-1/","/6-1-1/","/6-2-1/","/6-a-1/","/7-1-1/","/7-1-2/","/8-9-1/","/9-1-2/","/10-4-2/","/10-7-4/","/10-c-1/","/11-1-1/","/12-4-1/","/13-2-1/","/13-2-2/","/15-a-1/","/15-c-1/","/16-1-3/","/16-6-1/","/16-7-1/","/16-10-1/","/17-1-1/","/17-1-2/","/17-12-1/","/17-13-1/","/17-15-1/","/17-17-1/","/17-19-2/","/12-3-1/","/15-3-1/","/15-1-1/","/2-1-2/","/2-a-1/","/17-3-2/","/13-a-1/","/2-a-2/","/3-b-2/","/9-a-1/","/8-a-1/","/10-b-1/","/17-4-1/","/7-3-1/","/7-b-1/","/12-a-1/","/7-2-1/","/7-a-1/","/6-5-2/","/6-3-2/","/12-4-2/","/11-3-1/","/14-1-1/","/11-6-1/","/14-7-1/","/11-7-1/","/6-6-1/","/6-3-1/","/15-9-1/","/2-5-1/","/6-b-1/","/14-4-1/","/6-5-1/","/6-4-2/","/6-4-1/","/14-5-1/","/14-3-1/","/15-1-2/","/15-4-1/","/15-7-1/","/8-10-1/","/8-10-2/","/9-3-2/","/10-5-1/","/9-5-2/","/11-4-1/","/9-5-1/","/5-5-2/","/9-c-1/","/5-b-1/","/17-6-1/","/17-8-1/","/16-5-1/","/9-2-1/","/9-b-1/","/8-1-1/","/1-2-2/","/1-a-2/","/4-a-1/","/4-6-1/","/4-2-1/","/4-2-2/","/4-1-2/","/4-1-1/","/4-c-1/","/17-5-1/","/10-7-2/","/1-5-3/","/11-b-1/","/13-1-2/","/1-5-4/","/11-b-2/","/13-1-3/","/5-5-1/","/16-10-2/","/10-6-1/","/16-8-1/","/16-9-1/","/12-1-1/","/12-7-1/","/17-18-2/","/17-18-3/","/3-b-1/","/3-2-1/","/3-2-2/","/5-6-1/","/3-7-1/","/3-3-4/","/3-3-1/","/2-2-4/","/3-c-1/","/3-a-1/","/3-1-2/","/5-3-2/","/3-3-3/","/3-1-1/","/3-4-2/","/2-2-1/","/3-6-1/","/2-2-2/","/3-3-2/","/3-8-2/","/1-3-1/","/10-1-1/","/10-2-1/","/1-1-1/","/1-2-1/","/5-4-1/","/10-4-1/","/8-2-1/","/8-3-1/","/8-8-2/","/8-7-1/","/9-2-2/","/8-6-1/","/8-5-2/","/10-7-3/","/2-1-1/","/16-3-3/","/3-7-2/","/5-3-1/","/16-6-2/","/9-1-1/","/11-2-1/","/10-a-1/","/17-11-1/","/16-4-2/","/16-2-2/","/16-1-1/","/16-3-2/","/16-1-4/","/5-2-2/","/16-2-3/","/2-2-2a/","/4-1-4/","/16-a-1/","/5-6-2/","/15-5-1/","/12-2-1/","/16-4-1/","/17-9-1/","/2-4-1/","/3-d-2/","/14-c-1/","/15-2-1/","/4-7-1/","/2-3-2/","/3-3-5/","/3-9-1/","/11-3-2/","/17-10-1/","/3-8-1/","/17-14-1/","/2-2-3/","/16-5-2/","/14-b-1/","/12-b-1/","/17-3-1/","/17-18-1/","/3-9-3/","/17-16-1/","/10-7-1/","/15-b-1/","/8-8-1/","/11-6-2/","/16-2-1/","/15-6-1/","/17-7-1/","/12-8-1/","/16-b-1/","/15-8-1/","/5-1-1/","/16-1-2/","/12-2-2/","/11-7-2/","/17-2-1/","/13-3-1/","/5-a-2/","/2-3-1/","/16-3-1/","/8-4-1/","/15-4-2/","/3-4-1/","/2-5-2/","/3-5-2/","/8-5-1/","/1-5-2/","/4-b-1/","/14-6-1/","/3-d-1/","/8-4-2/","/3-5-1/","/3-9-2/","/3-b-3/","/11-5-2/","/14-a-1/","/17-19-1/","/12-c-1/","/9-4-1/","/16-7-2/","/12-6-1/","/11-a-1/","/9-3-1/","/4-4-1/","/10-3-1/","/13-b-1/","/14-2-1/","/2-b-1/","/12-5-1/","/5-c-1/","/8-b-1/","/1-b-1/","/1-a-1/","/8-9-2/","/11-5-3/"]); 28 await cache.addAll(["https://Kenya-SDG.github.io/production-data/en/comb/1-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/1-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/13-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/7-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/7-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/8-9-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/10-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/10-7-4.json","https://Kenya-SDG.github.io/production-data/en/comb/10-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/13-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/13-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/15-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-1-3.json","https://Kenya-SDG.github.io/production-data/en/comb/16-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-10-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/17-12-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-13-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-15-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-17-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-19-2.json","https://Kenya-SDG.github.io/production-data/en/comb/12-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/2-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/13-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-a-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-b-2.json","https://Kenya-SDG.github.io/production-data/en/comb/9-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/7-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/7-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/7-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/7-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/6-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/12-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/11-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-9-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/6-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/6-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/15-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-10-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-10-2.json","https://Kenya-SDG.github.io/production-data/en/comb/9-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/10-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/11-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/9-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-8-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/1-a-2.json","https://Kenya-SDG.github.io/production-data/en/comb/4-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/4-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/4-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-7-2.json","https://Kenya-SDG.github.io/production-data/en/comb/1-5-3.json","https://Kenya-SDG.github.io/production-data/en/comb/11-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/13-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/1-5-4.json","https://Kenya-SDG.github.io/production-data/en/comb/11-b-2.json","https://Kenya-SDG.github.io/production-data/en/comb/13-1-3.json","https://Kenya-SDG.github.io/production-data/en/comb/5-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-10-2.json","https://Kenya-SDG.github.io/production-data/en/comb/10-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-8-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-9-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-18-2.json","https://Kenya-SDG.github.io/production-data/en/comb/17-18-3.json","https://Kenya-SDG.github.io/production-data/en/comb/3-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/5-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-3-4.json","https://Kenya-SDG.github.io/production-data/en/comb/3-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-2-4.json","https://Kenya-SDG.github.io/production-data/en/comb/3-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/5-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-3-3.json","https://Kenya-SDG.github.io/production-data/en/comb/3-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/2-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-8-2.json","https://Kenya-SDG.github.io/production-data/en/comb/1-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-8-2.json","https://Kenya-SDG.github.io/production-data/en/comb/8-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/8-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/10-7-3.json","https://Kenya-SDG.github.io/production-data/en/comb/2-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-3-3.json","https://Kenya-SDG.github.io/production-data/en/comb/3-7-2.json","https://Kenya-SDG.github.io/production-data/en/comb/5-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-6-2.json","https://Kenya-SDG.github.io/production-data/en/comb/9-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-11-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/16-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/16-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/16-1-4.json","https://Kenya-SDG.github.io/production-data/en/comb/5-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/16-2-3.json","https://Kenya-SDG.github.io/production-data/en/comb/2-2-2a.json","https://Kenya-SDG.github.io/production-data/en/comb/4-1-4.json","https://Kenya-SDG.github.io/production-data/en/comb/16-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-6-2.json","https://Kenya-SDG.github.io/production-data/en/comb/15-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-9-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-d-2.json","https://Kenya-SDG.github.io/production-data/en/comb/14-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-3-5.json","https://Kenya-SDG.github.io/production-data/en/comb/3-9-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-3-2.json","https://Kenya-SDG.github.io/production-data/en/comb/17-10-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-8-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-14-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-2-3.json","https://Kenya-SDG.github.io/production-data/en/comb/16-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/14-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-3-1.json","https://Kenya-SDG.github.
28io/production-data/en/comb/17-18-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-9-3.json","https://Kenya-SDG.github.io/production-data/en/comb/17-16-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-8-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-6-2.json","https://Kenya-SDG.github.io/production-data/en/comb/16-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-7-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-8-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-8-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-1-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-1-2.json","https://Kenya-SDG.github.io/production-data/en/comb/12-2-2.json","https://Kenya-SDG.github.io/production-data/en/comb/11-7-2.json","https://Kenya-SDG.github.io/production-data/en/comb/17-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/13-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-a-2.json","https://Kenya-SDG.github.io/production-data/en/comb/2-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/15-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/8-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/4-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-d-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-4-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/3-9-2.json","https://Kenya-SDG.github.io/production-data/en/comb/3-b-3.json","https://Kenya-SDG.github.io/production-data/en/comb/11-5-2.json","https://Kenya-SDG.github.io/production-data/en/comb/14-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/17-19-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/16-7-2.json","https://Kenya-SDG.github.io/production-data/en/comb/12-6-1.json","https://Kenya-SDG.github.io/production-data/en/comb/11-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/9-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/4-4-1.json","https://Kenya-SDG.github.io/production-data/en/comb/10-3-1.json","https://Kenya-SDG.github.io/production-data/en/comb/13-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/14-2-1.json","https://Kenya-SDG.github.io/production-data/en/comb/2-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/12-5-1.json","https://Kenya-SDG.github.io/production-data/en/comb/5-c-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-b-1.json","https://Kenya-SDG.github.io/production-data/en/comb/1-a-1.json","https://Kenya-SDG.github.io/production-data/en/comb/8-9-2.json","https://Kenya-SDG.github.io/production-data/en/comb/11-5-3.json"]); 29 }; 30 31 event.waitUntil(populateCache()); 32}); 33 34 35// Cache page navigations (html) with a Network First strategy 36registerRoute( 37 // Check to see if the request is a navigation to a new page 38 ({ request }) => request.mode === 'navigate', 39 // Use a Network First caching strategy 40 new NetworkFirst({ 41 cacheName: cacheName, 42 plugins: [ 43 // Ensure that only requests that result in a 200 status are cached 44 new CacheableResponsePlugin({ 45 statuses: [200], 46 }), 47 ], 48 }), 49); 50 51// Cache CSS, JS, and Web Worker requests with a Stale While Revalidate strategy 52registerRoute( 53 // Check to see if the request's destination is style for stylesheets, script for JavaScript, or worker for web worker 54 ({ request }) => 55 request.destination === 'style' || 56 request.destination === 'script' || 57 request.destination === 'worker', 58 // Use a Stale While Revalidate caching strategy 59 new StaleWhileRevalidate({ 60 cacheName: cacheName, 61 plugins: [ 62 // Ensure that only requests that result in a 200 status are cached 63 new CacheableResponsePlugin({ 64 statuses: [200], 65 }), 66 ], 67 }), 68); 69 70// Cache images/fonts with a Cache First strategy 71registerRoute( 72 // Check to see if the request's destination is style for an image 73 ({ request }) => ['image', 'font'].includes(request.destination), 74 // Use a Cache First caching strategy 75 new CacheFirst({ 76 cacheName: cacheName, 77 plugins: [ 78 // Ensure that only requests that result in a 200 status are cached 79 new CacheableResponsePlugin({ 80 statuses: [200], 81 }), 82 // Don't cache more than 50 items, and expire them after 30 days 83 new ExpirationPlugin({ 84 maxEntries: 50, 85 maxAgeSeconds: 60 * 60 * 24 * 30, // 30 Days 86 }), 87 ], 88 }), 89); 90 91// Cache json with a Network First strategy. 92registerRoute( 93 /.*\.(json|geojson|zip|csv)$/, 94 new NetworkFirst({ 95 cacheName: cacheName, 96 plugins: [ 97 new CacheableResponsePlugin({ 98 statuses: [200], 99 }), 100 ] 101 }), 102);
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.