31 writes to VaryByHeader
Microsoft.AspNetCore.Mvc.Core (1)
ResponseCacheAttribute.cs (1)
112
VaryByHeader
= VaryByHeader,
Microsoft.AspNetCore.Mvc.Core.Test (30)
Filters\ResponseCacheFilterExecutorTest.cs (21)
76
VaryByHeader
= null
87
VaryByHeader
= null
97
VaryByHeader
= null
108
VaryByHeader
= null
118
VaryByHeader
= null
128
VaryByHeader
= null
138
VaryByHeader
= null
148
VaryByHeader
= null
158
VaryByHeader
= null
168
VaryByHeader
= null
204
VaryByHeader
= null
214
VaryByHeader
= null
225
VaryByHeader
= null
260
VaryByHeader
= "Accept"
271
VaryByHeader
= "Accept"
282
VaryByHeader
= "Accept"
293
VaryByHeader
= "Test"
304
VaryByHeader
= "Test"
422
VaryByHeader
= null,
442
VaryByHeader
= null
521
VaryByHeader
= "Accept"
ResponseCacheAttributeTest.cs (9)
69
{ Duration = 20, Location = ResponseCacheLocation.Any, NoStore = false,
VaryByHeader
= "Accept", VaryByQueryKeys = new[] { "QueryKey" } }
77
{ Duration = 0, Location = ResponseCacheLocation.None, NoStore = true,
VaryByHeader
= null, VaryByQueryKeys = null }
97
VaryByHeader
= "Test",
101
{ Duration = 20, Location = ResponseCacheLocation.Any, NoStore = false,
VaryByHeader
= "Accept", VaryByQueryKeys = new[] { "QueryKey" } }
116
VaryByHeader
= "Test",
120
{ Duration = 534, Location = ResponseCacheLocation.Client, NoStore = false,
VaryByHeader
= "Test", VaryByQueryKeys = new[] { "ProfileQueryKey" } }
134
VaryByHeader
= "Test",
138
{ Duration = 534, Location = ResponseCacheLocation.Client, NoStore = false,
VaryByHeader
= "Test", VaryByQueryKeys = new[] { "ProfileQueryKey" } }
150
{ Duration = 5234, Location = ResponseCacheLocation.Any, NoStore = false,
VaryByHeader
= null, VaryByQueryKeys = null }
3 references to VaryByHeader
Microsoft.AspNetCore.Mvc.Core (2)
Filters\ResponseCacheFilterExecutor.cs (1)
45
get => _cacheVaryByHeader ?? _cacheProfile.
VaryByHeader
;
ResponseCacheAttribute.cs (1)
104
VaryByHeader = VaryByHeader ?? selectedProfile?.
VaryByHeader
;
Microsoft.AspNetCore.Mvc.Core.Test (1)
ResponseCacheAttributeTest.cs (1)
170
Assert.Equal(expectedProfile.
VaryByHeader
, responseCacheFilter.VaryByHeader);