How to set cache: false in jQuery.get call

The Solution to How to set cache: false in jQuery.get call is


Add the parameter yourself.

$.get(url,{ "_": $.now() }, function(rdata){
  console.log(rdata);
});

As of jQuery 3.0, you can now do this:

$.get({
  url: url, 
  cache: false
}).then(function(rdata){
  console.log(rdata);
});

~ Answered on 2012-01-12 20:06:25


Most Viewed Questions: