How to reduce server response time (request, Node.js)?

On the website (example) a rest api. At you can retrieve data (e.g. json).
At the request of the browser (go to url), the response time is ~200 ms, but when the request comes from the node, then the response time more than a second.
How to reduce the response time from the node (ideally to browser time)?
What headers are important to reduce query time?
Does the User-Agent?
Can I send the request like it is from the same domain ( and will this affect response time?
June 27th 19 at 15:24
1 answer
June 27th 19 at 15:26
takeshiro as a browser ))

fiddler com for verification headers
Would love to hear a more detailed version of your answer.

But it seems caching is not suitable for this task, because it uses the https Protocol. - cecilia18 commented on June 27th 19 at 15:29

Find more questions by tags Node.jsRESTful APIServer optimizationWeb Development