Ver código fonte

Merge branch 'iteration-classroom' into jenkins

lex 1 ano atrás
pai
commit
666c0ef25b
1 arquivos alterados com 12 adições e 4 exclusões
  1. 12 4
      dev-dist/sw.js

+ 12 - 4
dev-dist/sw.js

@@ -69,7 +69,7 @@ if (!self.define) {
   };
 }
 define(['./workbox-5357ef54'], function (workbox) {
-  'use strict';
+  ('use strict');
 
   self.skipWaiting();
   workbox.clientsClaim();
@@ -87,8 +87,7 @@ define(['./workbox-5357ef54'], function (workbox) {
       },
       {
         url: 'index.html',
-
-        revision: '0.p9rb3ikv53'
+        revision: '0.3vo3lspd3m'
       }
     ],
     {}
@@ -102,6 +101,15 @@ define(['./workbox-5357ef54'], function (workbox) {
   workbox.registerRoute(
     new workbox.NavigationRoute(workbox.createHandlerBoundToURL('index.html'), {
       allowlist: [/^\/$/]
-    })
+    }),
+    workbox.strategies.networkOnly()
+  );
+  workbox.routing.registerRoute(
+    new RegExp('.*.html|css'),
+    workbox.strategies.networkFirst()
+  );
+  workbox.routing.registerRoute(
+    new RegExp('|js'),
+    workbox.strategies.networkOnly()
   );
 });