net\System\Net\Cache\HttpRequestCacheValidator.cs (18)
248if (this.Policy.Level != HttpRequestCacheLevel.Revalidate && base.Policy.Level >= RequestCacheLevel.Reload)
251GlobalLog.Assert("OnValidateCache()", "This validator should not be called for policy = " + Policy.ToString());
252if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString()));
260if (this.Policy.Level == HttpRequestCacheLevel.CacheOnly)
292if (result != CacheValidationStatus.ReturnCachedResponse && this.Policy.Level == HttpRequestCacheLevel.CacheOnly) {
324if (this.Policy.Level != HttpRequestCacheLevel.Revalidate && base.Policy.Level >= RequestCacheLevel.Reload)
327GlobalLog.Assert("RevalidateCache()", "This validator should not be called for policy = " + Policy.ToString());
328if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString()));
405if (this.Policy.Level != HttpRequestCacheLevel.CacheOrNextCacheOnly &&
406this.Policy.Level != HttpRequestCacheLevel.Default &&
407this.Policy.Level != HttpRequestCacheLevel.Revalidate)
410if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_response_valid_based_on_policy, Policy.ToString()));
443if (this.Policy.Level == HttpRequestCacheLevel.NoCacheNoStore) {
444if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_removed_existing_based_on_policy, Policy.ToString()));
447if (this.Policy.Level == HttpRequestCacheLevel.CacheOnly) {
448if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_not_updated_based_on_policy, Policy.ToString()));
524if (this.Policy.Level == HttpRequestCacheLevel.Default)
526CacheEntry.MaxStale = this.Policy.MaxStale;