Jquery Ajax call, dont want to load from Cache.

To avoid loading data or content from cache when making Ajax call using Jquery, the following statement need to add in the document.ready block.

$(document).ready(function () {
$.ajaxSetup (
{ // Disable caching of AJAX responses    
cache: false
});


});
the above code will disable caching for Ajax response on the page.

Comments

Popular posts from this blog

To Move items from one ListBox to another Listbox

Receive Json Web response in C#