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

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