Bitcoin-com / rest.bitcoin.com

Bitcoin.com's Cloud's REST API
https://rest.bitcoin.com
MIT License
19 stars 26 forks source link

Endpoints are slowed down due to high latency on preflight requests #570

Open p0o opened 4 years ago

p0o commented 4 years ago

As you can see here, a 3 consequent calls to res.bitcoin.com could take up to 5 seconds which is a bad UX for web applications using it. Most of this time is not spent on real request but on preflight request which browsers send before the real request to make sure the endpoint is accepting that content-type.

You can see below that these requests (OPTION method) are taking around 3 seconds Screen Shot 2020-03-28 at 8 01 43 PM