Delete cached requests on error.
This commit is contained in:
parent
ea73f35be7
commit
f07b9f1dfa
@ -371,6 +371,9 @@
|
|||||||
},
|
},
|
||||||
onabort: function() {
|
onabort: function() {
|
||||||
return delete $.cache.requests[url];
|
return delete $.cache.requests[url];
|
||||||
|
},
|
||||||
|
onerror: function() {
|
||||||
|
return delete $.cache.requests[url];
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
responseType: responseType
|
responseType: responseType
|
||||||
|
|||||||
@ -299,6 +299,7 @@ $.extend $,
|
|||||||
req = $.ajax url, {
|
req = $.ajax url, {
|
||||||
onload: -> cb.call @ for cb in @callbacks
|
onload: -> cb.call @ for cb in @callbacks
|
||||||
onabort: -> delete $.cache.requests[url]
|
onabort: -> delete $.cache.requests[url]
|
||||||
|
onerror: -> delete $.cache.requests[url]
|
||||||
}, {
|
}, {
|
||||||
responseType: responseType
|
responseType: responseType
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user