P
P
PlagaMedicum2017-04-07 16:09:39
Node.js
PlagaMedicum, 2017-04-07 16:09:39

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

1 answer(s)
D
Dimonchik, 2017-04-07
@dimonchik2013

cache as a browser))
fiddler com to check headers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question