Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
72b4225167b8c575bf1500ed1517d157d80a9c8d
1 parent
22fc1bef
fix offline
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
public/js/pwa/sw.js
public/js/pwa/sw.js
View file @
72b4225
...
...
@@ -69,7 +69,7 @@ const precacheFile = [{
};
})).
concat
(
config
.
precachePage
.
map
(
page
=>
{
return
{
url
:
page
url
:
page
+
'?t='
+
qs
.
t
};
})).
concat
(
config
.
precacheCdnStaticFile
.
map
(
file
=>
{
return
{
...
...
@@ -116,7 +116,7 @@ workboxSW.router.registerRoute(args => {
}
// navigate 请求失败后,返回网络异常页面
return
caches
.
match
(
'offline.html
'
);
return
caches
.
match
(
'offline.html
?t='
+
qs
.
t
);
});
});
...
...
Please
register
or
login
to post a comment