Merge branch 'gray' into 'master'
Gray See merge request !1493
Showing
3 changed files
with
3 additions
and
3 deletions
@@ -13,7 +13,7 @@ module.exports = { | @@ -13,7 +13,7 @@ module.exports = { | ||
13 | target: 'webworker', | 13 | target: 'webworker', |
14 | module: { | 14 | module: { |
15 | rules: [{ | 15 | rules: [{ |
16 | - test: /\.(js|mjs)$/, | 16 | + test: /\.js$/, |
17 | include: [path.join(__dirname, '../../node_modules/workbox-sw'), path.join(__dirname, '../js')], | 17 | include: [path.join(__dirname, '../../node_modules/workbox-sw'), path.join(__dirname, '../js')], |
18 | use: 'babel-loader' | 18 | use: 'babel-loader' |
19 | }] | 19 | }] |
@@ -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 |
This diff could not be displayed because it is too large.
-
Please register or login to post a comment