What happens at Back-end when I abort an Ajax request at Front-end

I have a HTML page in which I have 2 buttons, next and previous (for switching between weeks), and every time a button is clicked I send an Ajax request at back-end (JAVA).

When the next or previous buttons are pressed, I abort the previous request and send a new one.

What I can't understand is, what happens in the back-end when I abort a request at the front-end? Because I send HTTP requests from the back-end to external endpoints (Microsoft Graph), and I need to abort these requests as well.

Upvotes: 1

Views: 374

Answers (1)

carmelolg
carmelolg

Reputation: 503

Every request arrived at BE will be processed.

You will receive more than one response from back-end in this case. You can't abort request if it already arrived at back-end.

Upvotes: 1

Related Questions