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.
This commit is contained in:
Naz 2022-09-15 10:16:01 +08:00
parent edb8afe106
commit d06194a0d6
No known key found for this signature in database

View File

@ -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)
);