1)在HTML頁面中加入以下代碼:html
<head> <meta http-equiv="Pragma",content="no-cache">; <meta http-equiv="Cache-Control",content="no-cache">; <meta http-equiv="Expires",content="0">; </head>
2)在JSP頁面中加入以下代碼:ui
<head> <% response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0); %> </head>