Call
$. Getjson ("$ {CTX }/Getdata. Action", {Topid: topid}, function (JSON ){
// Use the returned Data Update page
}
The page is cached, that is, the data remains unchanged after the user logs on.
I thought it was a JPA cache. disabling the JPA cache does not work.
I tried to disable the IE cache again. (Set in Browser IE options)
Therefore, the JSP settings page is not cached.
<Meta http-equiv = "Pragma" content = "no-Cache">
<Meta http-equiv = "cache-control" content = "no-Cache">
<Meta http-equiv = "expires" content = "0">
The problem was solved in this way, but the logon page still found to be cached.
Later, I suspect that the JSON cache is correct. After testing, the getjson callback method can be executed.
HoweverCodeIt is not executed, so the result is a JSON cache.
In
Printwriter out = response. getwriter ();
Out. Write (JSON );
Previously added Code to prohibit JSON caching
Response. setheader ("Pragma", "No-Cache ");
Response. setheader ("cache-control", "No-Cache ");
Response. setheader ("expires", "0 ");
Solve the problem.