Remove surprising 2 minute edge caching for API market data (#541)

This commit is contained in:
Marshall Polaris 2022-06-17 17:43:02 -07:00 committed by GitHub
parent 83ded17625
commit bb934d8390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -24,7 +24,6 @@ export default async function handler(
return return
} }
// Cache on Vercel edge servers for 2min res.setHeader('Cache-Control', 'max-age=0')
res.setHeader('Cache-Control', 'max-age=0, s-maxage=120')
return res.status(200).json(toFullMarket(contract, comments, bets)) return res.status(200).json(toFullMarket(contract, comments, bets))
} }

View File

@ -24,7 +24,6 @@ export default async function handler(
listAllComments(contract.id), listAllComments(contract.id),
]) ])
// Cache on Vercel edge servers for 2min res.setHeader('Cache-Control', 'max-age=0')
res.setHeader('Cache-Control', 'max-age=0, s-maxage=120')
return res.status(200).json(toFullMarket(contract, comments, bets)) return res.status(200).json(toFullMarket(contract, comments, bets))
} }