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