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