51 references to Cache
System.ServiceModel.Web (6)
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
86
HttpContext.Current.Response.
Cache
.SetCacheability(HttpCacheability.Public);
System\ServiceModel\Dispatcher\HelpPage.cs (4)
101
HttpContext.Current.Response.
Cache
.SetCacheability(HttpCacheability.Public);
102
HttpContext.Current.Response.
Cache
.SetMaxAge(TimeSpan.MaxValue);
103
HttpContext.Current.Response.
Cache
.AddValidationCallback(new HttpCacheValidateHandler(this.CacheValidationCallback), this.startupTime);
104
HttpContext.Current.Response.
Cache
.SetValidUntilExpires(true);
System\ServiceModel\Web\CachingParameterInspector.cs (1)
268
HttpCachePolicy cache = HttpContext.Current.Response.
Cache
;
System.Web (30)
Abstractions\HttpResponseWrapper.cs (1)
50
return new HttpCachePolicyWrapper(_httpResponse.
Cache
);
Handlers\AssemblyResourceLoader.cs (1)
636
HttpCachePolicy cachePolicy = context.Response.
Cache
;
HttpHeaderCollection.cs (1)
132
_response.
Cache
.SetHasSetCookieHeader();
HttpResponse.cs (12)
1006
Cache
.SetDependencies(true);
3127
/// the <see cref='System.Web.HttpResponse.
Cache
'/>
3138
Cache
.SetExpires(_context.Timestamp + new TimeSpan(0, _expiresInMinutes, 0));
3147
/// will be removed from the cache. Provided for ASP compatiblility. Use the <see cref='System.Web.HttpResponse.
Cache
'/>
3158
Cache
.SetExpires(_expiresAbsolute);
3166
/// Provided for ASP compatiblility. Use the <see cref='System.Web.HttpResponse.
Cache
'/>
3182
Cache
.SetCacheability(HttpCacheability.NoCache);
3186
Cache
.SetCacheability(HttpCacheability.Private);
3190
Cache
.SetCacheability(HttpCacheability.Public);
3194
Cache
.SetCacheability(HttpCacheability.NoCache);
3510
if (!Request.IsSecureConnection && ContainsNonShareableCookies() &&
Cache
.GetCacheability() == HttpCacheability.Public) {
3511
Cache
.SetCacheability(HttpCacheability.NoCache, "Set-Cookie");
OutputCacheModule.cs (2)
982
response.
Cache
.ResetFromHttpCachePolicySettings(settings, context.UtcTimestamp);
1047
cache = response.
Cache
;
Security\PassportIdentity.cs (1)
1025
context.Response.
Cache
.SetCacheability(HttpCacheability.NoCache);
StaticFileHandler.cs (5)
557
response.
Cache
.SetIgnoreRangeRequests();
559
response.
Cache
.SetExpires(utcNow.AddDays(1));
561
response.
Cache
.SetLastModified(lastModifiedInUtc);
563
response.
Cache
.SetETag(etag);
565
response.
Cache
.SetCacheability(HttpCacheability.Public);
UI\Page.cs (6)
3532
HttpCachePolicy cache = Response.
Cache
;
3667
Response.
Cache
.SetNoStore();
4595
Response.
Cache
.SetCacheability(HttpCacheability.NoCache);
5273
Response.
Cache
.SetCacheability(HttpCacheability.NoCache);
5312
Response.
Cache
.SetNoStore();
5345
Response.
Cache
.SetNoStore();
UI\WebControls\AdRotator.cs (1)
392
(int)Page.Response.
Cache
.GetCacheability() != (int)HttpCacheabilityLimits.None) {
System.Web.Extensions (12)
Handlers\ScriptModule.cs (2)
89
context.Response.
Cache
.SetCacheability(HttpCacheability.NoCache);
143
response.
Cache
.SetCacheability(HttpCacheability.NoCache);
HttpResponseInternalWrapper.cs (1)
25
return new HttpCachePolicyWrapper(_httpResponse.
Cache
);
Script\Services\RestHandler.cs (8)
65
context.Response.
Cache
.SetCacheability(HttpCacheability.Server);
66
context.Response.
Cache
.SetExpires(DateTime.Now.AddSeconds(cacheDuration));
67
context.Response.
Cache
.SetSlidingExpiration(false);
68
context.Response.
Cache
.SetValidUntilExpires(true);
72
context.Response.
Cache
.VaryByParams["*"] = true;
75
context.Response.
Cache
.VaryByParams.IgnoreParams = true;
79
context.Response.
Cache
.SetNoServerCaching();
80
context.Response.
Cache
.SetMaxAge(TimeSpan.Zero);
Script\Services\WebServiceClientProxyGenerator.cs (1)
57
HttpCachePolicy cachePolicy = context.Response.
Cache
;
System.Web.Mobile (3)
UI\MobileControls\MobilePage.cs (3)
851
Response.
Cache
.SetCacheability(HttpCacheability.ServerAndPrivate);
852
Response.
Cache
.VaryByHeaders[UserAgentHeader] = true;
859
Response.
Cache
.VaryByHeaders[header] = true;