Explorar el Código

Merge branch 'iteration-classroom' into jenkins

lex hace 1 año
padre
commit
2df0bdca0c
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  1. 6 2
      dev-dist/sw.js
  2. 1 1
      public/version.json

+ 6 - 2
dev-dist/sw.js

@@ -103,10 +103,14 @@ define(['./workbox-5357ef54'], function (workbox) {
     new workbox.NavigationRoute(workbox.createHandlerBoundToURL('index.html'), {
       allowlist: [/^\/$/]
     }),
-    workbox.strategies.NetworkFirst()
+    workbox.strategies.networkOnly()
+  );
+  workbox.routing.registerRoute(
+    new RegExp('.*.html|css'),
+    workbox.strategies.networkFirst()
   );
   workbox.routing.registerRoute(
     new RegExp('.*.html|css|js'),
-    workbox.strategies.NetworkFirst()
+    workbox.strategies.networkOnly()
   );
 });

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1710311252973}
+{ "version": 1710311252973 }