Cancel an HTTP request. Server side advantage?

For example, in JavaScript AJAX libraries, you can cancel an AJAX request. Are there server-side benefits or is it just for client-side cleanliness? Is it part of TCP?

If, for example, I request Python-based server service through AJAX, which is resource-intensive, from my JavaScript web application and abort this AJAX request, is it possible that the interrupt will ease the load on the server or will my ajax library simply ignore the response from the server ?

+7
source share
2 answers

This does not affect the server if you use the abort framework. The server will still process the request independently.

+5
source

After you make an HTTP request for the resource URL on your server (whether Asynch or not, aka ajax or "regular"), you cannot cancel it from your client / using another HTTP request (unless your the service does not have some weird listener that is waiting for potential subsequent HTTP requests and stops receiving one). My suggestion is, if you have one resource-intensive and labor-intensive operation, divide it into simpler operations, parallelize or east, make several periodic answers to at least inform the user that he is still working and not dead.

+3
source

All Articles