$.ajax({
url: 'XXX',
cache: true,
beforeSend: function (request) {
request.setRequestHeader("If-Modified-Since", "0");
request.setRequestHeader("Cache-Control", "no-cache");
},
type: "get",
data: filter,
dataType: "json",
contentType: "application/json;utf-8",
success: function (res) {
}
});
url: 'XXX',
cache: true,
beforeSend: function (request) {
request.setRequestHeader("If-Modified-Since", "0");
request.setRequestHeader("Cache-Control", "no-cache");
},
type: "get",
data: filter,
dataType: "json",
contentType: "application/json;utf-8",
success: function (res) {
}
});