...
|
...
|
@@ -68,6 +68,11 @@ exports.preference = (req, res, next) => { |
|
|
yhChannel: req.query.yhChannel,
|
|
|
limit: '20' // 后期值需要修改的话得手动改
|
|
|
}).then((result) => {
|
|
|
res.set({
|
|
|
'Cache-Control': 'max-age=' + 300 // 此接口不走render,手动缓存5分钟
|
|
|
});
|
|
|
res.removeHeader('Pragma');
|
|
|
res.removeHeader('Expires');
|
|
|
res.send(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|