Why my AJAX is called every two minutes?
Browsers will retry a request if it fails due to a timeout. Since you never return a response, this will always happen. You should respond with something like res.end()
or res.send("success!")
.
Browsers will retry a request if it fails due to a timeout. Since you never return a response, this will always happen. You should respond with something like res.end()
or res.send("success!")
.