Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
刘传洋
2016-10-28 16:30:11 +0800
Commit
8afab8b64d6a7a371483c7c19eec00d855842b09
1 parent
27a0080a
cache window time
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
config/cache.js
doraemon/middleware/page-cache.js
config/cache.js
View file @
8afab8b
...
...
@@ -19,7 +19,7 @@ const cachePage = {
'/guang/'
:
1
*
MINUTE
,
'/guang/info/index'
:
10
*
MINUTE
,
'/guang/detail/:id'
:
10
*
MINUTE
,
'/guang/
i
ndex/editor'
:
1
*
MINUTE
,
'/guang/
I
ndex/editor'
:
1
*
MINUTE
,
'/guang/tags/index'
:
1
*
MINUTE
,
// 领券中心
...
...
doraemon/middleware/page-cache.js
View file @
8afab8b
...
...
@@ -45,7 +45,7 @@ module.exports = () => {
res
.
set
({
'Cache-Control'
:
'no-cache'
,
Pragma
:
'no-cache'
,
Expires
:
new
Date
(
1900
,
0
,
1
,
0
,
0
,
0
,
0
)
Expires
:
(
new
Date
(
1900
,
0
,
1
,
0
,
0
,
0
,
0
)).
toGMTString
(
)
});
}
...
...
Please
register
or
login
to post a comment