I am calling a void POST method in my application through the JQuery AJAX block, on IE the service doesn't even gets called however the control lands in the success block all the time.(Tested this using firebug for IE). Does it have some开发者_开发知识库thing to do with the void service method, Also what should be the way for me to handle this situation.
Appreciate the help in advance!
Vaibhav
P.S. this functionality works fine on Firefox and Chrome
below is the way service is called
options = {
url: url,
success: function(o){
},
error: function (xhr, err) {
},
type: 'POST',
data: postData,
contentType: 'application/xml'
}
IE is a bit too aggressive in caching data and it happens quite a lot that a GET returns previously cached data. Now a POST should never be cached but knowing IE :-(. Try adding a cache: false,
to the request.
Use fiddler and compare what gets sent over the wire between IE and Chrome.
精彩评论