在PageLoad事件中加入这行代码 , 使这个页面被Render后包含没有cache的信息, 用户对这个页面的请求永远会被服务器处理
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
本文介绍了一种确保网页不被缓存的方法,在PageLoad事件中使用Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)来禁止浏览器缓存,使得每次用户访问页面时都会触发服务器处理。
在PageLoad事件中加入这行代码 , 使这个页面被Render后包含没有cache的信息, 用户对这个页面的请求永远会被服务器处理
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);

被折叠的 条评论
为什么被折叠?