예제 #1
0
 public HttpCacheFilter(ICacheabilityValidator validator,
                        ICacheDirectiveProvider cacheDirectiveProvider)
 {
     _validator             = validator;
     CacheDirectiveProvider = cacheDirectiveProvider;
     ApplyNoCacheNoStoreForNonCacheableResponse = true;
 }
예제 #2
0
 public CachingPipeline(ICacheabilityValidator validator,
                        ICacheDirectiveProvider cacheDirectiveProvider,
                        HttpCachingOptions options)
 {
     _validator = validator;
     _cacheDirectiveProvider = cacheDirectiveProvider;
     _doNotEmitHeader        = options.DoNotEmitCacheCowHeader;
 }
예제 #3
0
        public HttpCacheFilter(ICacheabilityValidator validator,
                               ICacheDirectiveProvider cacheDirectiveProvider, IOptions <HttpCachingOptions> options)
        {
            _validator = validator;

            CacheDirectiveProvider = cacheDirectiveProvider;
            ApplyNoCacheNoStoreForNonCacheableResponse = true;
            _options = options.Value;
        }
예제 #4
0
 public CachingPipeline(ICacheabilityValidator validator,
                        ICacheDirectiveProvider cacheDirectiveProvider)
 {
     _validator = validator;
     _cacheDirectiveProvider = cacheDirectiveProvider;
 }