Answer the question
In order to leave comments, you need to log in
How to reduce server response time (request, Node.js)?
The site example.com (example) has a rest api . At example.com/data you can get data (for example json ).
When requesting from the browser (following the url), the response time is ~200 ms , but when the request comes from node , then the response time is more than a second.
How to reduce response time from node (ideally to browser time)?
What headers are important to reduce request time?
Does the User-Agent play a role ?
Is it possible to send a request as if it came from the same domain ( exmaple.com ) and will this affect the response time?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question