在jsp中加入如下代碼:
<%
//設置無緩存
response.setHeader("progma","no-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);
%>
在html裏面也可以加入
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
第二種:
<script language='javascript'>
history.go(1);
</script>