3 writes to CacheAge
System (3)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (1)
546ctx.CacheAge = (age < TimeSpan.Zero? TimeSpan.Zero: age);
net\System\Net\Cache\HttpRequestCacheValidator.cs (2)
382CacheAge = TimeSpan.Zero; 842CacheAge = span;
24 references to CacheAge
System (24)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (20)
521if (ctx.CacheAge != TimeSpan.MinValue) { 522age += ctx.CacheAge; 525if (ctx.CacheAge != TimeSpan.MinValue) 526Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized_age_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture), ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 535if (ctx.CacheAge != TimeSpan.MinValue) { 536if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age2, ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 537if (ctx.CacheAge > age || age == TimeSpan.MaxValue) { 538age = ctx.CacheAge; 556if (ctx.CacheAge != TimeSpan.MinValue) { 568if (ctx.CacheAge < ctx.CacheMaxAge) { 582if (ctx.CacheAge < ctx.CacheMaxAge) { 603if (expiresDate != DateTime.MinValue && date != DateTime.MinValue && ctx.CacheAge != TimeSpan.MinValue) { 606if (ctx.CacheAge < ctx.CacheMaxAge) { 650if (ctx.CacheAge.TotalSeconds < maxAgeSeconds) { 659if (ctx.CacheMaxAge >= ctx.CacheAge) { 883if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age, (ctx.CacheAge != TimeSpan.MinValue ? ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo) : SR.GetString(SR.net_log_unknown)), (ctx.CacheMaxAge != TimeSpan.MinValue? ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo): SR.GetString(SR.net_log_unknown)))); 888if (ctx.CacheAge + ctx.Policy.MinFresh >= ctx.CacheMaxAge) {return false;} 894if (ctx.CacheAge >= ctx.Policy.MaxAge) {return false;} 918if (ctx.CacheAge >= adjustedMaxAge)
net\System\Net\Cache\HttpRequestCacheValidator.cs (4)
305if (HeuristicExpiration && (int)CacheAge.TotalSeconds >= 24*3600) { 315CacheHeaders[HttpKnownHeaderNames.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo); 361if (HeuristicExpiration && (int)CacheAge.TotalSeconds >= 24*3600) { 389CacheHeaders[HttpKnownHeaderNames.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo);