Remove surprising 2 minute edge caching for API market data (#541)
This commit is contained in:
parent
83ded17625
commit
bb934d8390
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user