In ie browsers, the general ajax methods are cache = true. Below are a few good solutions. If you are interested, refer. the default value of the cache parameter is true for the load method. Especially in IE browsers, the average ajax method is cache = true!
Solution:
1. Use the. ajax method and set the cache parameter to false.
The Code is as follows:
$. AjaxSetup ({cache: false });
$ (Fucntion ({
$. AjaxSetup ({cache: false });
}))
Run the load method before each execution. Note that it cannot be set as a global attribute.
You can write a method to reference this method every time you open the page.
2. Modify the load method and load method in jquery. js to call. ajax and add cache: false.
3. Add the random number parameter after the link you requested to make the ajax request think it is a different link address
4. Use POST instead of GET. The browser does not cache POST.
I used the method of adding a random number: var url = "memberlog_showLogComment.action? Logid = "+ logid +" & random = "+ Math. random ();
$ ("# Comment "). load (url); you can execute each click. the load method can use post instead of get: $ ("# comment "). load ("memberlog_showLogComment.action", {"logid": logid });