Authored by 刘传洋

empty no-cache

... ... @@ -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');
}
... ...