Answer the question
In order to leave comments, you need to log in
Why does Jquery Ajax retry a request if the server doesn't respond?
I have an asynchronous ajax request from the client side, which on the server side is processed> 5 minutes. But already on the 4th minute, for some reason, the request is duplicated again on the client side.
It turns out that on the client the request hangs in the "pending" status, does not wait for a response from the server, and duplicates the request every 4 minutes. Even if the server sends a response after 5 minutes, it no longer arrives at the client and the request remains in the "pending" status
Reproduced in Chrome 57 and IE 11, using jquery-1.9.2.min.js, an ASP.NET MVC application
Answer the question
In order to leave comments, you need to log in
In any case, I would immediately return the task identifier to the client, and then periodically poll the status from the client. Well, or a websocket would do.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question