- 服务端返回禁用缓存的header
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
Response.Cache.SetValidUntilExpires(false);
Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
- view中添加禁用缓存的meta
<meta http-equiv="PRAGMA" content="NO-CACHE" />
网友评论