Googler

两情相悦,又岂在朝朝暮暮。

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();
        }

posted on 2011-05-08 12:29  RockyLOMO  阅读(300)  评论(0编辑  收藏  举报

导航

Apple/苹果笔记本 Mac Air MC968CH/A 行货在保 I5 11寸 超级本