Skip to content

Commit

Permalink
Stop caching API responses (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
galenguyer authored Mar 31, 2021
1 parent d5c224a commit 62f5601
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ const apiConfig = nconf.get('api');
const apiPath = `/${apiConfig.prefix}/${apiConfig.version}`;

router.use((req, res, next) => {
res.header('Cache-Control', 'max-age=60');
return next();
});

router.use((req, res, next) => {
res.header('Cache-Control', 'max-age=300');
res.header('Cache-Control', 'max-age=0');
return next();
});

Expand Down

0 comments on commit 62f5601

Please sign in to comment.