response.addHeader("Cache-Control","no-store");//HTTP 1.1 response.addHeader("Pragma","no-cache");//HTTP 1.0 response.addHeader("Expires","0");//prevents caching at the proxy server
javaGirlOrBoy() -------------------- 在开头的部分加入如下代码:response.addHeader("Cache-Control","no-store");//HTTP 1.1 response.addHeader("Pragma","no-cache");//HTTP 1.0 response.addHeader("Expires","0");//prevents caching at the proxy server
response.addHeader("Pragma","no-cache");//HTTP 1.0
response.addHeader("Expires","0");//prevents caching at the proxy server
--------------------
在开头的部分加入如下代码:response.addHeader("Cache-Control","no-store");//HTTP 1.1
response.addHeader("Pragma","no-cache");//HTTP 1.0
response.addHeader("Expires","0");//prevents caching at the proxy server