HTTP 304 AJAX Cache on IE

HTTP 304 AJAX Cache on IE

I have a REST json API based on Spring Controller, this is developed by my collegues. Recently, I met one issue like this.
When I visit my API, I got 304 from the IE debugger. That is not what I want.

Add this parameter in my jquery ajax call.

cache: false

For example:

$.ajax({
type: "get",
dataType: "json",
url: "serverURL",
cache: false,
data: {label: label, vendorId: vendorId},
beforeSend: function(){
$("#loading").show();
},
complete: function(){
$("#loading").hide();
}


references:
http://hi.baidu.com/zjw199/blog/item/66df72014f4ae1d1267fb5ea.html
http://stackoverflow.com/questions/9009931/spring-mvc-3-get-request-returning-code-304-incorrectly-from-ie


你可能感兴趣的:(cache)