现在的位置: 首页 > 综合 > 正文

.net 不让浏览器缓存

2018年02月11日 ⁄ 综合 ⁄ 共 277字 ⁄ 字号 评论关闭

//不让浏览器缓存
        //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";

抱歉!评论已关闭.