Showing
1 changed file
with
2 additions
and
2 deletions
@@ -69,7 +69,7 @@ const precacheFile = [{ | @@ -69,7 +69,7 @@ const precacheFile = [{ | ||
69 | }; | 69 | }; |
70 | })).concat(config.precachePage.map(page => { | 70 | })).concat(config.precachePage.map(page => { |
71 | return { | 71 | return { |
72 | - url: page | 72 | + url: page + '?t=' + qs.t |
73 | }; | 73 | }; |
74 | })).concat(config.precacheCdnStaticFile.map(file => { | 74 | })).concat(config.precacheCdnStaticFile.map(file => { |
75 | return { | 75 | return { |
@@ -116,7 +116,7 @@ workboxSW.router.registerRoute(args => { | @@ -116,7 +116,7 @@ workboxSW.router.registerRoute(args => { | ||
116 | } | 116 | } |
117 | 117 | ||
118 | // navigate 请求失败后,返回网络异常页面 | 118 | // navigate 请求失败后,返回网络异常页面 |
119 | - return caches.match('offline.html'); | 119 | + return caches.match('offline.html?t=' + qs.t); |
120 | }); | 120 | }); |
121 | }); | 121 | }); |
122 | 122 |
-
Please register or login to post a comment