1, 使用java提供的方法,在jsp或者servlet中都可以
1
2response.setHeader("Pragma","No-cache");
3response.setHeader("Cache-Control","no-cache");
4response.setDateHeader("Expires", 0);
2, 使用HTML标记,如下面:
1<head>
2<meta content="no-cache" http-equiv="Pragma"/>
3<meta content="no-cache" http-equiv="Cache-Control"/>
4<meta content="0" http-equiv="Expires"/>
5</head>