1.Asp,在页首加上:
Response.Buffer=true
Response.ExpiresAbsolute=now()-1
Response.Expires=0
Response.CacheControl="no-cathe"
Response.AddHeader "Pragma","No-Cathe"
2.Html,在<head>之间加:
<META http-equiv="pragma" content="no-cathe" >
<META http-equiv="cathe-control" content="no-cathe,must-revalidate" >
<META http-equiv="expires" content="0" >
3.在url后加随机数,此方法最简单。
response.Write("<script>location.href='"&url&"?random='+Math.random();;</script>")