禁用jsp页面缓存

禁用jsp页面缓存

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1

 response.setHeader("Pragma","no-cache"); //HTTP 1.0

 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

你可能感兴趣的:(禁用jsp页面缓存)