Example #1
0
        /// <summary>
        /// 尝试获取缓存的输出
        /// </summary>
        /// <returns>缓存的输出</returns>
        protected virtual ICachedResponse ResolveCache()
        {
            var policy = HtmlProviders.GetCachePolicy(HttpContext);

            if (policy == null)
            {
                return(null);
            }


            CachePolicy = policy;

            return(CachePolicy.ResolveCache());
        }
Example #2
0
 public CachePolicy CreateCachePolicy(HttpContextBase context)
 {
     return(HtmlProviders.GetCachePolicy(context));
 }