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