4 writes to CacheHeaders
System (4)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (2)
365
ctx.
CacheHeaders
= null;
1774
ctx.
CacheHeaders
= new WebHeaderCollection();
net\System\Net\Cache\HttpRequestCacheValidator.cs (2)
453
CacheHeaders
= new WebHeaderCollection();
637
CacheHeaders
= new WebHeaderCollection();
46 references to CacheHeaders
System (46)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (26)
131
if (ctx.
CacheHeaders
.Expires == null && (ctx.CacheEntry.IsPrivateEntry?ctx.CacheCacheControl.MaxAge == -1:ctx.CacheCacheControl.SMaxAge == -1)) {
774
ctx.
CacheHeaders
.Remove(ctx.ResponseCacheControl.PrivateHeaders[i]);
964
ctx.
CacheHeaders
.Remove(ctx.CacheCacheControl.NoCacheHeaders[i]);
1067
if (resp.Headers[HttpKnownHeaderNames.ContentMD5] != ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentMD5]) {
1071
if (resp.Headers.ETag != ctx.
CacheHeaders
.ETag) {
1075
if (resp.StatusCode != HttpStatusCode.NotModified && resp.Headers.LastModified != ctx.
CacheHeaders
.LastModified)
1095
if (ctx.
CacheHeaders
.ETag != ctx.Response.Headers.ETag ||
1096
(ctx.
CacheHeaders
.LastModified != ctx.Response.Headers.LastModified
1137
ctx.
CacheHeaders
.Remove(HttpKnownHeaderNames.ContentRange);
1140
{ctx.
CacheHeaders
.Remove(HttpKnownHeaderNames.ContentLength);}
1142
{ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentLength] = ctx.CacheStreamLength.ToString(NumberFormatInfo.InvariantInfo);}
1185
((location=cc[HttpKnownHeaderNames.ContentLocation]) != null && location != ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentLocation]) ||
1186
((etag=cc.ETag) != null && etag != ctx.
CacheHeaders
.ETag)) {
1299
ctx.
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, HttpRequestCacheValidator.Warning_111);
1334
string[] cacheVary = ctx.
CacheHeaders
.GetValues(HttpKnownHeaderNames.Vary);
1490
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range_in_cache, ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentRange]));
1507
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_partial_resp, ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentRange]));
1593
string str = ctx.
CacheHeaders
.ETag;
1649
string str = ctx.
CacheHeaders
.ETag;
1710
ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentRange] = ranges;
1711
ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentLength] = ctx.CacheStreamLength.ToString(NumberFormatInfo.InvariantInfo);
1723
ctx.
CacheHeaders
.Remove(HttpKnownHeaderNames.ContentRange);
1726
{ctx.
CacheHeaders
.Remove(HttpKnownHeaderNames.ContentLength);}
1728
{ctx.
CacheHeaders
[HttpKnownHeaderNames.ContentLength] = ctx.CacheEntityLength.ToString(NumberFormatInfo.InvariantInfo);}
1771
if (ctx.
CacheHeaders
== null || (resp.StatusCode != HttpStatusCode.NotModified && resp.StatusCode != HttpStatusCode.PartialContent))
1834
ctx.
CacheHeaders
.ChangeInternal(key, ctx.Response.Headers[i]);
net\System\Net\Cache\HttpRequestCacheValidator.cs (17)
300
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, HttpRequestCacheValidator.Warning_110);
303
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, HttpRequestCacheValidator.Warning_112);
306
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, HttpRequestCacheValidator.Warning_113);
315
CacheHeaders
[HttpKnownHeaderNames.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo);
359
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, HttpRequestCacheValidator.Warning_110);
362
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, HttpRequestCacheValidator.Warning_113);
389
CacheHeaders
[HttpKnownHeaderNames.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo);
452
if (
CacheHeaders
== null)
483
if (
CacheHeaders
== null) {
507
UpdateStringCollection(CacheEntry.EntryMetadata,
CacheHeaders
, false);
636
if (
CacheHeaders
== null)
645
string s = ParseNameValues(
CacheHeaders
, CacheEntry.EntryMetadata, ignoreFirstString?1:0);
649
CacheHeaders
.Clear();
727
WebHeaderCollection cc = forCache?
CacheHeaders
: Response.Headers;
1157
string[] warnings =
CacheHeaders
.GetValues(HttpKnownHeaderNames.Warning);
1163
CacheHeaders
.Remove(HttpKnownHeaderNames.Warning);
1165
CacheHeaders
.Add(HttpKnownHeaderNames.Warning, (string)remainingWarnings[i]);
net\System\Net\HttpWebRequest.cs (3)
4238
responseData.m_ResponseHeaders = ctx.
CacheHeaders
;
4302
? new WebHeaderCollection(ctx.
CacheHeaders
)
4303
: ctx.
CacheHeaders
;