The
.load method does not set the cache parameter and defaults to true. Especially under IE browser, the general ajax method has cache equal to true!
Several solutions:
1. Use the .ajax method and set the cache parameter to false
$.ajaxSetup ({ cache: false });
$(fucntion({
$.ajaxSetup ({ cache: false });
}))
Execute before each execution of the load method. Note that it cannot be set as a global attribute
You can write a method and reference this method every time you open the page
2. Modify the load method in jquery.js. The load method is also called .ajax, and add cache:false
3. Add a random number parameter after the link you requested, so that the ajax request is considered to be a different link address
4 .Use POST instead of GET, the browser will not cache POST
I adopted the method of adding random numbers: var url = "memberlog_showLogComment.action?logid=" logid "&random=" Math.random();
$("#comment").load(url); can be executed every time you click. The load method can also use post instead of get: $("#comment").load("memberlog_showLogComment.action", { "logid ": logid });