diff --git a/core/server/web/members/app.js b/core/server/web/members/app.js index ecf2f8b4ca..9a9f4d2c04 100644 --- a/core/server/web/members/app.js +++ b/core/server/web/members/app.js @@ -38,7 +38,7 @@ module.exports = function setupMembersApp() { membersApp.get('/api/session', middleware.getIdentityToken); membersApp.get('/api/offers/:id', middleware.getOfferData); membersApp.delete('/api/session', middleware.deleteSession); - membersApp.get('/api/site', middleware.getMemberSiteData); + membersApp.get('/api/site', shared.middleware.cacheControl('public', {maxAge: 30}), middleware.getMemberSiteData); // NOTE: this is wrapped in a function to ensure we always go via the getter membersApp.post('/api/send-magic-link', bodyParser.json(), shared.middleware.brute.membersAuth, (req, res, next) => membersService.api.middleware.sendMagicLink(req, res, next));