设置页面不缓存 no-cache
html中设置方法 <head> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="0"> </head> jsp中设置方法 1. response.setHeader("Pragma","no-cache"); 2. response.setHeader("Cache-Control","no-cache"); 3. response.setDateHeader("Expires",0);
生活不止眼前的苟且,还有诗和远方。。。