瀏覽代碼

Merge branch 'iteration-oss-up' into jenkins

lex 1 年之前
父節點
當前提交
3074f8817a
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      dev-dist/sw.js

+ 7 - 1
dev-dist/sw.js

@@ -87,11 +87,17 @@ define(['./workbox-5357ef54'], function (workbox) {
       },
       {
         url: 'index.html',
-        revision: '0.75vo45gt8f8'
+        revision: '0.3q2r9p5ticg'
       }
     ],
     {}
   );
+  workbox.cleanupOutdatedCaches();
+  workbox.registerRoute(
+    new workbox.NavigationRoute(workbox.createHandlerBoundToURL('index.html'), {
+      allowlist: [/^\/$/]
+    })
+  );
 
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(