Example #1
0
        public HttpCacheAttribute()
        {
            ApplyNoCacheNoStoreForNonCacheableResponse = true;
            CachingRuntime.OnHttpCacheCreated(new HttpCacheCreatedEventArgs(this));
            var val = _configValueProvider.GetValue(ConfigurationKeys.DoNotEmitCacheCowHeader);

            bool.TryParse(val, out _doNotEmitHeader);
        }
Example #2
0
 public HttpCacheAttribute()
 {
     ApplyNoCacheNoStoreForNonCacheableResponse = true;
     CachingRuntime.OnHttpCacheCreated(new HttpCacheCreatedEventArgs(this));
 }