浏览器缓存js css等文件

1.在jsp中加入头<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"><META HTTP-EQUIV="Expires" CONTENT="0">
或者加入<meta http-equiv="pragma" content="no-cache"  /><meta http-equiv="content-type" content="no-cache, must-revalidate" /><meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT"/>清除临时缓存
<body onLoad="javascript:document.yourFormName.reset()">2.在action,使用如下声明response.setHeader("Pragma","No-cache");response.setHeader("Cache-Control","no-cache"); response.setDateHeader("Expires", 0);