Authored by 刘传洋

cache window time

... ... @@ -19,7 +19,7 @@ const cachePage = {
'/guang/': 1 * MINUTE,
'/guang/info/index': 10 * MINUTE,
'/guang/detail/:id': 10 * MINUTE,
'/guang/index/editor': 1 * MINUTE,
'/guang/Index/editor': 1 * MINUTE,
'/guang/tags/index': 1 * MINUTE,
// 领券中心
... ...
... ... @@ -45,7 +45,7 @@ module.exports = () => {
res.set({
'Cache-Control': 'no-cache',
Pragma: 'no-cache',
Expires: new Date(1900, 0, 1, 0, 0, 0, 0)
Expires: (new Date(1900, 0, 1, 0, 0, 0, 0)).toGMTString()
});
}
... ...