MVC缓存

 [OutputCache(Duration =3600, VaryByParam = "*",Location=OutputCacheLocation.Server)]
        public ActionResult Index()
        {

                Response.Cache.SetOmitVaryStar(true); 

posted @ 2015-05-20 10:48  You最温暖的港湾  阅读(149)  评论(0编辑  收藏  举报