NoteGio / openrelay

OpenRelay is an open source relay for the 0x protocol. OpenRelay provides an open, scalable orderbook. Users can post offers for any ERC20 or ERC721 token, or search for trades with other users
Other
159 stars 56 forks source link

Add cache control to errors on TOS #142

Closed AusIV closed 5 years ago

AusIV commented 5 years ago

We found that when dApps query for whether an account is authorized, cloudfront caches the answer. After they authorize, the dApp asks again, and cloudfront returns the cached "no they don't exist" even though the authorization changed the correct answer.

We're making error pages uncacheable here, which we should consider doing for other endpoints as well.