SetNoCache()

        public static void SetNoCache()
        {
            HttpContext context = HttpContext.Current;
            context.Response.Buffer = true;
            context.Response.Charset = "gb2312";
            context.Response.ContentType = "text/plain";
            context.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
            context.Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
            context.Response.Expires = 0;
            context.Response.CacheControl = "no-cache";
            context.Response.Cache.SetNoStore();
        }
原文地址:https://www.cnblogs.com/Googler/p/2040288.html