Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
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
陈峰
2018-01-19 14:42:40 +0800
Commit
1cae91dc8ee52e04678cb444c810bfe9cd71ea68
1 parent
0d0c4405
cache
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
doraemon/middleware/ssr.js
doraemon/middleware/ssr.js
View file @
1cae91d
...
...
@@ -61,6 +61,7 @@ const getContext = (req) => {
};
const
render
=
(
options
)
=>
{
options
.
cache
=
false
;
return
(
req
,
res
,
next
)
=>
{
if
(
options
.
cache
)
{
const
html
=
microCache
.
get
(
req
.
url
);
...
...
Please
register
or
login
to post a comment