96 references to CacheControlHeaderValue
Microsoft.AspNetCore.Components.Endpoints (1)
src\Components\Shared\src\CacheHeaderSettings.cs (1)
22headers.CacheControl = new CacheControlHeaderValue
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\CacheHeaderSettings.cs (1)
22headers.CacheControl = new CacheControlHeaderValue
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
src\Components\Shared\src\CacheHeaderSettings.cs (1)
22headers.CacheControl = new CacheControlHeaderValue
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
51var expected = new CacheControlHeaderValue() { MaxAge = TimeSpan.FromSeconds(604800) };
Microsoft.AspNetCore.OutputCaching.Tests (10)
OutputCacheMiddlewareTests.cs (3)
39context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 456context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 482context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue()
OutputCachePolicyProviderTests.cs (7)
98context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 145context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 163context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 181context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 227context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 357context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 380context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue()
Microsoft.AspNetCore.ResponseCaching.Tests (42)
ResponseCachingMiddlewareTests.cs (4)
24context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 403context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 479context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 504context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue()
ResponseCachingPolicyProviderTests.cs (37)
87context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 102context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 146context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 172context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 186context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 203context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 220context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 237context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 254context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 273context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 349context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 366context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 385context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 408context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 428context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 450context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 470context.HttpContext.Response.Headers.CacheControl = new CacheControlHeaderValue() 508context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 526context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 547context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 567context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 589context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 610context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 629context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 634context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 653context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 658context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 675context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 682context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 699context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 705context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 722context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 729context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 746context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 753context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 771context.HttpContext.Request.Headers.CacheControl = new CacheControlHeaderValue() 778context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue()
TestUtils.cs (1)
44headers.CacheControl = new CacheControlHeaderValue
Microsoft.Net.Http.Headers (1)
CacheControlHeaderValue.cs (1)
551var result = new CacheControlHeaderValue();
Microsoft.Net.Http.Headers.Tests (38)
CacheControlHeaderValueTest.cs (38)
11var cacheControl = new CacheControlHeaderValue(); 70var cacheControl = new CacheControlHeaderValue(); 92cacheControl = new CacheControlHeaderValue(); 101cacheControl = new CacheControlHeaderValue(); 109var cacheControl = new CacheControlHeaderValue(); 119cacheControl = new CacheControlHeaderValue(); 139values[i] = new CacheControlHeaderValue(); 179values[i] = new CacheControlHeaderValue(); 210var cacheControl1 = new CacheControlHeaderValue(); 211var cacheControl2 = new CacheControlHeaderValue(); 212var cacheControl3 = new CacheControlHeaderValue(); 213var cacheControl4 = new CacheControlHeaderValue(); 214var cacheControl5 = new CacheControlHeaderValue(); 253values[i] = new CacheControlHeaderValue(); 293values[i] = new CacheControlHeaderValue(); 320var value1 = new CacheControlHeaderValue(); 322var value2 = new CacheControlHeaderValue(); 333var cacheControl1 = new CacheControlHeaderValue(); 334var cacheControl2 = new CacheControlHeaderValue(); 335var cacheControl3 = new CacheControlHeaderValue(); 336var cacheControl4 = new CacheControlHeaderValue(); 337var cacheControl5 = new CacheControlHeaderValue(); 338var cacheControl6 = new CacheControlHeaderValue(); 378var expected = new CacheControlHeaderValue(); 382expected = new CacheControlHeaderValue(); 388expected = new CacheControlHeaderValue(); 394expected = new CacheControlHeaderValue(); 401expected = new CacheControlHeaderValue(); 411expected = new CacheControlHeaderValue(); 417expected = new CacheControlHeaderValue(); 480var expected = new CacheControlHeaderValue(); 485expected = new CacheControlHeaderValue(); 491expected = new CacheControlHeaderValue(); 495expected = new CacheControlHeaderValue(); 517var expected = new CacheControlHeaderValue(); 522expected = new CacheControlHeaderValue(); 528expected = new CacheControlHeaderValue(); 532expected = new CacheControlHeaderValue();
ResponseCachingSample (1)
Startup.cs (1)
20context.Response.GetTypedHeaders().CacheControl = new CacheControlHeaderValue()