@quintype/framework 7.19.2 → 7.19.3-topic-page-caching.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.19.2",
3
+ "version": "7.19.3-topic-page-caching.2",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -436,7 +436,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
436
436
  cacheKeys: [customUrlToCacheKey(config["publisher-id"], "redirect")],
437
437
  cdnProvider: cdnProvider,
438
438
  config: config,
439
- sMaxAge,
439
+ sMaxAge: result.pageType === "tag-page" ? 600 : sMaxAge,
440
440
  });
441
441
  return res.redirect(301, result.data.location);
442
442
  }
@@ -462,7 +462,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
462
462
  cacheKeys: _.get(result, ["data", "cacheKeys"]),
463
463
  cdnProvider: cdnProvider,
464
464
  config: config,
465
- sMaxAge,
465
+ sMaxAge: result.pageType === "tag-page" ? 600 : sMaxAge,
466
466
  });
467
467
 
468
468
  if (preloadJs) {