10 references to MaxStale
System (10)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (9)
103
if (ctx.Policy.
MaxStale
> TimeSpan.Zero) {
104
ctx.Request.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "max-stale=" + (int)ctx.Policy.
MaxStale
.TotalSeconds);
276
(ctx.Policy.
MaxStale
> TimeSpan.Zero && (DateTime.UtcNow - ctx.ResponseExpires) > ctx.Policy.
MaxStale
)))
369
ctx.CacheEntry.MaxStale = ctx.Policy.
MaxStale
;
906
if (ctx.Policy.
MaxStale
> TimeSpan.Zero)
908
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_max_stale, ((int)ctx.Policy.
MaxStale
.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
909
if (adjustedMaxAge < TimeSpan.MaxValue - ctx.Policy.
MaxStale
)
911
adjustedMaxAge = adjustedMaxAge + ctx.Policy.
MaxStale
;
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
526
CacheEntry.MaxStale = this.Policy.
MaxStale
;