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
陈峰
6 years ago
Commit
f4b75b31cead64790ed6c45bc658008693d2f830
1 parent
72d14cca
活动域名下移除sw.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
apps/api/controllers/pwa.js
apps/api/controllers/pwa.js
View file @
f4b75b3
...
...
@@ -5,6 +5,9 @@ const config = global.yoho.config;
module
.
exports
=
{
sw
(
req
,
res
)
{
if
(
req
.
hostname
===
'activity.yoho.cn'
)
{
return
res
.
status
(
404
).
end
();
}
res
.
set
({
'Cache-Control'
:
'no-cache'
,
Pragma
:
'no-cache'
,
...
...
Please
register
or
login
to post a comment