17 writes to VaryByQueryKeys
Microsoft.AspNetCore.Mvc.Core (1)
ResponseCacheAttribute.cs (1)
113
VaryByQueryKeys
= VaryByQueryKeys,
Microsoft.AspNetCore.Mvc.Core.Test (15)
Filters\ResponseCacheFilterExecutorTest.cs (6)
341
VaryByQueryKeys
= new[] { "Accept" }
352
VaryByQueryKeys
= new[] { "Accept" }
363
VaryByQueryKeys
= new[] { "Accept" }
374
VaryByQueryKeys
= new[] { "Accept", "Test" }
386
VaryByQueryKeys
= new[] { "Accept", "Test" }
423
VaryByQueryKeys
= new[] { "Test" }
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 }
98
VaryByQueryKeys
= new[] { "ProfileQueryKey" }
101
{ Duration = 20, Location = ResponseCacheLocation.Any, NoStore = false, VaryByHeader = "Accept",
VaryByQueryKeys
= new[] { "QueryKey" } }
117
VaryByQueryKeys
= new[] { "ProfileQueryKey" }
120
{ Duration = 534, Location = ResponseCacheLocation.Client, NoStore = false, VaryByHeader = "Test",
VaryByQueryKeys
= new[] { "ProfileQueryKey" } }
135
VaryByQueryKeys
= new[] { "ProfileQueryKey" }
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 }
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
102
VaryByQueryKeys
= new[] { "A" },
5 references to VaryByQueryKeys
Microsoft.AspNetCore.Mvc.Core (3)
CacheProfile.cs (1)
44
/// <see cref="
VaryByQueryKeys
"/> requires the response cache middleware.
Filters\ResponseCacheFilterExecutor.cs (1)
51
get => _cacheVaryByQueryKeys ?? _cacheProfile.
VaryByQueryKeys
;
ResponseCacheAttribute.cs (1)
105
VaryByQueryKeys = VaryByQueryKeys ?? selectedProfile?.
VaryByQueryKeys
;
Microsoft.AspNetCore.Mvc.Core.Test (2)
ResponseCacheAttributeTest.cs (2)
171
if (expectedProfile.
VaryByQueryKeys
== null)
177
Assert.Equal(expectedProfile.
VaryByQueryKeys
, responseCacheFilter.VaryByQueryKeys);