Detect a 304 redirection on an AJAX request
is there a way to detect whether an AJAX request has been redirected through a 304 response ? I tried an onreadystagechange with xhr.status==304 but got nothing. Are we only bound to 200 response codes ?
The issue was already raised on SO but I coul开发者_运维技巧dn't find any answer...
if (xhr.status == 304){
//do your code
}
It should 100% work
精彩评论