Jquery $ .ajaxSetup ({cache: false}); doesn't seem to work in IE8?

I am using $.ajaxSetup({ cache: false }); but it doesn't seem to work in IE8? I am making several AJAX calls on the page. If I leave the page and return, it seems that my Ajax calls are still cached, although I set this to false. I know this because I do not see certain updated information that is present in the database but does not go through an Ajax call. If I close the entire IE window and then return to the page, will I see the updated information?

At this point, I think I can just add a random number to the request (s), although this does not mean that some kind of cache: false should do anyway?

+4
source share
1 answer

According to http://api.jquery.com/jQuery.ajaxSetup/ its use is not recommended. Use $ .ajax ({cache: false}) instead.

0
source

Source: https://habr.com/ru/post/1345894/


All Articles