Twice in a row triggers the http body.createServer?

Good evening, gentlemen.
I returned to the node, after a long time and decided to run my local server, but faced with the fact that when you reload the page, the body in the http functions.createServer() is triggered twice in a row, in what could be the problem?
March 23rd 20 at 19:16
1 answer
March 23rd 20 at 19:18
probably because the browser makes 2 requests, one time requests page, and the second time - requests the favicon
(this can be checked in the browser developer console)

here's a quick Google found a crutch for this second request
And if I do, it will have the same crutch to do? - pablo.Graham18 commented on March 23rd 20 at 19:21
@pablo.Graham18, to be honest I don't know, I'll go straight over http.createServer didn't even do anything, and immediately Express it somehow, and this behavior is not noticed (but heard about it) - Freddie commented on March 23rd 20 at 19:24

Find more questions by tags Node.js