console.log('Hello SW!');
@@ -18,8 +18,925 @@
 o SW
+123
 !');
+%0Aself.addEventListener('install', function (e) %7B%0A%0A    e.waitUntil(caches.open('assets').then(function (cache) %7B%0A        return cache.addAll(%5B%0A            '/',%0A            '/index.html',%0A            '/bundle.js',%0A            '/vendors.js'%0A        %5D);%0A    %7D));%0A%7D);%0A%0Aself.addEventListener('fetch', function (event) %7B%0A    // let go non GET requests%0A    if(event.request.method !== 'GET' %7C%7C event.request.url.startsWith('chrome-extension://')) %7B%0A        return;%0A    %7D%0A%0A    event.respondWith(%0A        caches.match(event.request).then(function (response) %7B%0A            if (response) %7B%0A                return response;%0A            %7D%0A%0A            return fetch(event.request).then(function (response) %7B%0A                return caches.open('dynamic').then(function (cache) %7B%0A                    cache.put(event.request, response.clone());%0A                    return response;%0A                %7D);%0A            %7D);%0A        %7D))%0A%7D)

load app frame offline