mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
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:
parent
edb8afe106
commit
d06194a0d6
@ -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)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user