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