Cache issues in browser using jQuery

To prevent caching of AJAX calls, either

use POST requests, POST requests are never cached.

use GET requests with caching disabled.

$.ajax({
type: “GET”,
cache: false,
url:”example.html”
}).done(function(returnedData){
//do something
});

Leave a Reply

Your email address will not be published. Required fields are marked *