How do I prevent a jQuery Ajax request from caching in Internet Explorer?
Jquery – How to prevent a jQuery Ajax request from caching in Internet Explorer
internet explorerjquery
Related Topic
- Javascript – How to manage a redirect request after a jQuery Ajax call
- Javascript – Abort Ajax requests using jQuery
- Javascript – How to redirect to another webpage
- Javascript – How to know which radio button is selected via jQuery
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – Get selected text from a drop-down list (select box) using jQuery
- Javascript – How to refresh a page with jQuery
- Javascript – How to return the response from an asynchronous call
Best Answer
You can disable caching globally using
$.ajaxSetup()
, for example:This appends a timestamp to the querystring when making the request. To turn cache off for a particular
$.ajax()
call, setcache: false
on it locally, like this: