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
姜枫
8 years ago
Commit
82adc446b791835ff88fdca603693e4c00fe57fa
1 parent
d3960f7c
fix when one route mulit path
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
doraemon/middleware/page-cache.js
doraemon/middleware/page-cache.js
View file @
82adc44
...
...
@@ -21,6 +21,11 @@ module.exports = () => {
function
onRender
()
{
let
route
=
req
.
route
?
req
.
route
.
path
:
''
;
let
appPath
=
req
.
app
.
mountpath
;
if
(
_
.
isArray
(
route
)
&&
route
.
length
>
0
)
{
route
=
route
[
0
];
}
let
key
=
urlJoin
(
appPath
,
route
.
toString
());
// route may be a regexp
req
.
app
.
set
(
'etag'
,
false
);
...
...
Please
register
or
login
to post a comment