Authored by 陈峰

commit

... ... @@ -75,6 +75,10 @@ const render = (route) => {
try {
res.setHeader('X-YOHO-Version', pkg.version);
const isDegrade = _.get(req.app.locals.wap, 'webapp.degrade', false);
if (isDegrade) {
return res.send(degradeHtml);
}
const ck = route.cackeKey ? getCacheKey(req.url, route.cackeKey) : void 0;
if (config.useCache && route.cache && ck) {
... ...