Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.Expires = -1;
Response.AddHeader("pragma","no-cache");
Response.AddHeader("cache-control","private");
Response.CacheControl = "no-cache";
我已经使用上面的代码来清除缓存了,但有时还是有记忆,不知怎么办?
Response.Expires = -1;
Response.AddHeader("pragma","no-cache");
Response.AddHeader("cache-control","private");
Response.CacheControl = "no-cache";
我已经使用上面的代码来清除缓存了,但有时还是有记忆,不知怎么办?
<input autoComplete="Off">
<input autoComplete="Off">
请问如何架个<meta>让网页立刻过期呢?<input autoComplete="Off">
写到什么地方呢?
Response.Expires = -1;就可以了
在Page_Load里加一个:Response.Expires = -1;就可以了/
在IE的工具-》Internet选项——》常规 -》Internet临时文件夹-》设置-》勾选每次访问时检查。