0 votes
in AJAX by
Describe the use of Cache false in Ajax call.

1 Answer

0 votes
by
Ajax requests are always issued by default, but browsers may send responses from their cache. In order to prevent this, the cache is set to false. Cache: false can be applied to prevent caching of all future Ajax requests, irrespective of jQuery method used.

The code used for all Ajax functions is as below:

$.ajaxSetup({cache:false});
...