.net 不让浏览器缓存

来源:互联网 发布:r语言与数据分析实战 编辑:程序博客网 时间:2024/05/17 07:06
//不让浏览器缓存
        //context.Response.Buffer = true;
        //context.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
        //context.Response.AddHeader("pragma", "no-cache");
        //context.Response.AddHeader("cache-control", "");
        //context.Response.CacheControl = "no-cache";
原创粉丝点击