在jsp页里
<%response.setHeader("Pragma","No-cache")
response.setHeader("Cache-Control","no-cache")
response.setDateHeader("Expires", 0)
response.flushBuffer()%>
在html页里:
<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
这种靠meta标签实现:<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)