|
|
|
|
|
by masklinn
5414 days ago
|
|
> It is a total hack, but it works in most cases. yeah I had to do that kind of stuff as well. > Not using redirects on xmlhttp requests is pretty limiting I don't agree. The reality is that it should not be needed, redirect-after-post (let alone DELETE or PUT) is a workaround for browser UI issues ("Do you want to re-send this POST request" popups on refresh) and URI localization (bookmarkability of the landing page). There are reasons for redirects in xhr scenarios, but they have to do mostly with clients "caching" old URLs and the service changing its URI structure. There's little to no reason to send a redirect (let alone a temporary one) to an XHR. |
|