61 references to HttpRequestCacheLevel
PresentationCore (4)
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (1)
145
_httpRequestCachePolicyRefresh = new HttpRequestCachePolicy(
HttpRequestCacheLevel
.Refresh);
Core\CSharp\System\Windows\Media\RequestCachePolicyConverter.cs (3)
89
HttpRequestCacheLevel
level = (
HttpRequestCacheLevel
)Enum.Parse(typeof(
HttpRequestCacheLevel
), s, true);
System (57)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (25)
70
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.NoCacheNoStore)
80
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Reload || ctx.Policy.Level ==
HttpRequestCacheLevel
.NoCacheNoStore)
87
else if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Refresh)
94
else if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Default)
107
else if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly || ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOrNextCacheOnly)
161
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Revalidate) {
168
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly) {
181
if (enoughFresh || ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly || ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheIfAvailable || ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOrNextCacheOnly)
187
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly) {
270
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Default && ctx.ResponseAge != TimeSpan.MinValue) {
368
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Default) {
452
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly)
465
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly)
484
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly)
881
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Default)
1288
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly || ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheIfAvailable || ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOrNextCacheOnly)
1295
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.Default || ctx.Policy.Level ==
HttpRequestCacheLevel
.Revalidate)
1497
if (ctx.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly &&
net\System\Net\Cache\HttpRequestCacheValidator.cs (11)
103
m_HttpPolicy = new HttpRequestCachePolicy((
HttpRequestCacheLevel
)base.Policy.Level);
248
if (this.Policy.Level !=
HttpRequestCacheLevel
.Revalidate && base.Policy.Level >= RequestCacheLevel.Reload)
260
if (this.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly)
292
if (result != CacheValidationStatus.ReturnCachedResponse && this.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly) {
324
if (this.Policy.Level !=
HttpRequestCacheLevel
.Revalidate && base.Policy.Level >= RequestCacheLevel.Reload)
405
if (this.Policy.Level !=
HttpRequestCacheLevel
.CacheOrNextCacheOnly &&
406
this.Policy.Level !=
HttpRequestCacheLevel
.Default &&
407
this.Policy.Level !=
HttpRequestCacheLevel
.Revalidate)
443
if (this.Policy.Level ==
HttpRequestCacheLevel
.NoCacheNoStore) {
447
if (this.Policy.Level ==
HttpRequestCacheLevel
.CacheOnly) {
524
if (this.Policy.Level ==
HttpRequestCacheLevel
.Default)
net\System\Net\Cache\RequestCachePolicy.cs (13)
145
internal static readonly HttpRequestCachePolicy BypassCache = new HttpRequestCachePolicy(
HttpRequestCacheLevel
.BypassCache);
148
private
HttpRequestCacheLevel
m_Level =
HttpRequestCacheLevel
.Default;
157
public HttpRequestCachePolicy():this(
HttpRequestCacheLevel
.Default)
161
public HttpRequestCachePolicy(
HttpRequestCacheLevel
level): base(MapLevel(level))
168
public HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan ageOrFreshOrStale):this(
HttpRequestCacheLevel
.Default)
188
public HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale):this(
HttpRequestCacheLevel
.Default)
216
public HttpRequestCachePolicy(DateTime cacheSyncDate):this(
HttpRequestCacheLevel
.Default)
231
public new
HttpRequestCacheLevel
Level
283
private static RequestCacheLevel MapLevel(
HttpRequestCacheLevel
level)
286
if (level <=
HttpRequestCacheLevel
.NoCacheNoStore)
289
if (level ==
HttpRequestCacheLevel
.CacheOrNextCacheOnly)
292
if (level ==
HttpRequestCacheLevel
.Refresh)
net\System\Net\Configuration\HttpCachePolicyElement.cs (6)
54
[ConfigurationProperty(ConfigurationStrings.PolicyLevel, IsRequired = true, DefaultValue = (
HttpRequestCacheLevel
)
HttpRequestCacheLevel
.Default)]
55
public
HttpRequestCacheLevel
PolicyLevel
57
get { return (
HttpRequestCacheLevel
)this[this.policyLevel]; }
99
new ConfigurationProperty(ConfigurationStrings.PolicyLevel, typeof(
HttpRequestCacheLevel
),
HttpRequestCacheLevel
.Default,
net\System\Net\Configuration\RequestCachingSection.cs (1)
187
if (httpPolicy.PolicyLevel ==
HttpRequestCacheLevel
.Default)
net\System\Net\FtpWebRequest.cs (1)
1980
m_HttpWebRequest.CachePolicy = new HttpRequestCachePolicy((
HttpRequestCacheLevel
)effectiveLevel);