When I did not refresh the ajax page, I encountered Ajax cache in IE, because I didn't know this bad problem at the beginning. I had to wait for a long time and finally solved the problem.
To sum up the solution:
When Ajax is used in IE to request a page, the previous result is usually returned due to cache, resulting in confusion. [get data, because the sending parameters and addresses are the same, the IE browser will retrieve them from the cache and will not request the server. The post method varies with the parameters, this problem does not occur] but does not occur in FF. To avoid cache impact, you can do this:
Internet Explorer access policy:
Internet Options -- browsing history -- settings -- the option of Temporary Internet Files is changed to the option that can be used to access the webpage each time.
1: Add a random function after the page of the AJAX request. We can use the random time function.
Add
1 t = Math. random ()
For example:
1 URL + "&" + "t =" + Math. random (); // or new Date ();
Add www.2cto.com to the URL parameter
1 "? Timestamp = "+ new Date (). getTime ();
The best method:
1 $. ajaxSetup ({cache: false })
In this way, all ajax requests on the page are executed. You don't have to change the N interfaces that have been completed.
From i33