mvc 浏览器回退重新加载页面

  • 服务端返回禁用缓存的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

你可能感兴趣的:(mvc 浏览器回退重新加载页面)