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

Export To Excel Even With Special Character in Data

Get Plain Text from FCKEditor in any Browser.