Can we make all Ajax calls Cache free?

 Posted by Chvrsri on 3/18/2016 | Category: ASP.NET Interview questions | Views: 2122 | Points: 40

In our application development we generally use Ajax calls for Asynchronous calls which will have an issue with Cache.

That means it loads the Old content rather than the recently fetched dynamic content. So for that we can make the call to be Cache free.

Below is the code to make the Ajax call Cache Free

$.ajaxSetup ({

// Disable the caching of AJAX responses for all Ajax
cache: false

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response