, , . .
( , , cache:false, , ). - ajax() . - .
var callback = function () {
$.ajax({
type: "GET",
url: requestUrl,
success: localSuccess,
error: error,
dataType: "text",
cache:false,
data : { r: Math.random() }
});
}
Thus, every time a server call is made, a new random number is created, and since the data is different from previous requests, ajax requests are not cached and will provide a new server call every time. And on your server, you can ignore this variable r.
source
share