I would say that Ajax followed by a redirect is not a good option for Ajax. Instead, I would recommend doing a normal server request and then taking care of all the operations on the server before redirecting to the final destination.
This will result in a simpler circuit and significant network traffic. I recommend using Ajax in cases where you want to avoid reloading the page. However, in your scenario, you plan to leave the page as soon as your operations are complete, so why not avoid what Ajax will give you.
source share