ssr-routes.js 1.29 KB
module.exports = [
  {
    route: /grass\/article\/\d+$/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/article\/\d+\/user/,
    cacheKey: '$url$yoho-protocol',
    cache: false
  },
  {
    route: /grass\/article\/share\/\d+/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/article\/detail\/\d+/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/topic\/\d+\/(.*)/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/\d+\/\d+/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/mine/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/follow\/\d+\/\d+/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/fans\/\d+\/\d+/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/mine\/follow/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/mine\/fans/,
    cacheKey: '$url$yoho-protocol',
    cacheTime: 900,
    cache: true
  },
];