一切福田,不離方寸,從心而覓,感無不通。

禁止浏览器缓存

html:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-store, must-revalidate">
<meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">
<meta http-equiv="expires" content="0">

asp
response.expires=0
response.addheader("pragma","no-cache")
response.addheader("cache-control","no-store, must-revalidate")

php
header("expires: mon, 26 jul 1997 05:00:00 gmt");
header("cache-control: no-store, must-revalidate");
header("pragma: no-cache");

jsp:
response.addheader("cache-control", "no-store, must-revalidate");
response.addheader("expires", "thu, 01 jan 1970 00:00:01 gmt");

转自:http://www.oschina.net/code/snippet_81226_7660