From d06194a0d6d8f8e5650d679a53c61d16eb19acc1 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 15 Sep 2022 10:16:01 +0800 Subject: [PATCH] Made members/.well-known config more readable refs https://github.com/TryGhost/Toolbox/issues/411 - Before moving the cache control values to a configurable ones, making them readable first. --- ghost/core/core/frontend/web/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/core/core/frontend/web/site.js b/ghost/core/core/frontend/web/site.js index 1aa9c5be83..410579a973 100644 --- a/ghost/core/core/frontend/web/site.js +++ b/ghost/core/core/frontend/web/site.js @@ -94,7 +94,7 @@ module.exports = function setupSiteApp(routerConfig) { // /member/.well-known/* serves files (e.g. jwks.json) so it needs to be mounted before the prettyUrl mw to avoid trailing slashes siteApp.use( '/members/.well-known', - shared.middleware.cacheControl('public', {maxAge: 60 * 60 * 24}), + shared.middleware.cacheControl('public', {maxAge: constants.ONE_DAY_S}), (req, res, next) => membersService.api.middleware.wellKnown(req, res, next) );