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
刘传洋
8 years ago
Commit
a9634ba9af0643ffab9e4eea2ddacffdbbc12396
1 parent
25042e67
empty no-cache
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
apps/guang/controllers/index.js
apps/guang/controllers/index.js
View file @
a9634ba
...
...
@@ -37,7 +37,7 @@ exports.index = (req, res, next) => {
headerModel
.
requestHeaderData
(
channel
)
]).
then
(
ret
=>
{
if
(
_
.
isEmpty
(
ret
[
2
])
||
_
.
isEmpty
(
ret
[
2
].
msgs
))
{
if
(
_
.
isEmpty
(
ret
[
2
])
||
_
.
isEmpty
(
ret
[
2
].
msgs
))
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
...
...
@@ -93,7 +93,7 @@ exports.tags = (req, res, next) => {
headerModel
.
requestHeaderData
(
channel
)
]).
then
(
ret
=>
{
if
(
_
.
isEmpty
(
ret
[
1
])
||
_
.
isEmpty
(
ret
[
1
].
msgs
))
{
if
(
_
.
isEmpty
(
ret
[
1
])
||
_
.
isEmpty
(
ret
[
1
].
msgs
))
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
...
...
@@ -148,7 +148,7 @@ exports.editor = (req, res, next) => {
headerModel
.
requestHeaderData
(
channel
)
]).
then
(
ret
=>
{
if
(
_
.
isEmpty
(
ret
[
1
])
||
_
.
isEmpty
(
ret
[
1
].
msgs
))
{
if
(
_
.
isEmpty
(
ret
[
1
])
||
_
.
isEmpty
(
ret
[
1
].
msgs
))
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
...
...
@@ -250,7 +250,7 @@ exports.detail = (req, res, next) => {
Promise
.
all
(
promises
).
then
(
ret
=>
{
if
(
_
.
isEmpty
(
ret
[
1
]))
{
if
(
_
.
isEmpty
(
ret
[
1
]))
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
...
...
Please
register
or
login
to post a comment