I just ran into the same thing and fixed it by setting the "cache" property of your ajax function call to false.
$.ajax({
url: "/ws/inventory/checkavailability/",
async: false,
dataType: 'json',
cache:false,
success: function (data) {
}, error: function (error) {
}
});
source
share