在Global.asax里面添加如下代码
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpContext.Current.Response.Cache.SetNoStore();
}
如何不允许用户使用浏览器的『后退按钮』查看前面缓存下来的页面
最新推荐文章于 2021-03-22 20:33:49 发布
在Global.asax里面添加如下代码
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpContext.Current.Response.Cache.SetNoStore();
}