66 references to ResponseCacheLocation
HostedBlazorWebassemblyApp.Server (1)
Pages\Error.cshtml.cs (1)
15
[ResponseCache(Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true)]
Identity.DefaultUI.WebSite (1)
Pages\Error.cshtml.cs (1)
10
[ResponseCache(Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true)]
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
16
[ResponseCache(Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true)]
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
16
[ResponseCache(Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true)]
Microsoft.AspNetCore.Mvc.Core (15)
CacheProfile.cs (1)
24
public
ResponseCacheLocation
? Location { get; set; }
Filters\ResponseCacheFilter.cs (1)
42
public
ResponseCacheLocation
Location
Filters\ResponseCacheFilterExecutor.cs (10)
15
private
ResponseCacheLocation
? _cacheLocation;
31
public
ResponseCacheLocation
Location
33
get => _cacheLocation ?? _cacheProfile.Location ??
ResponseCacheLocation
.Any;
59
if (!(NoStore || _cacheProfile.Location ==
ResponseCacheLocation
.None || _cacheLocation ==
ResponseCacheLocation
.None))
97
if (Location ==
ResponseCacheLocation
.None)
107
if (Location ==
ResponseCacheLocation
.None && _cacheProfile.Duration == null && _cacheDuration == null)
116
ResponseCacheLocation
.Any => "public",
117
ResponseCacheLocation
.Client => "private",
118
ResponseCacheLocation
.None => "no-cache",
ResponseCacheAttribute.cs (3)
22
private
ResponseCacheLocation
? _location;
38
public
ResponseCacheLocation
Location
40
get => _location ??
ResponseCacheLocation
.Any;
Microsoft.AspNetCore.Mvc.Core.Test (43)
Filters\ResponseCacheFilterExecutorTest.cs (27)
74
Location =
ResponseCacheLocation
.Any,
85
Location =
ResponseCacheLocation
.Client,
95
Location =
ResponseCacheLocation
.Any,
106
Location =
ResponseCacheLocation
.Any,
116
Location =
ResponseCacheLocation
.Client,
126
Location =
ResponseCacheLocation
.Any,
136
Location =
ResponseCacheLocation
.None,
146
Location =
ResponseCacheLocation
.None,
156
Location =
ResponseCacheLocation
.Any,
166
Location =
ResponseCacheLocation
.Any,
202
Location =
ResponseCacheLocation
.Client,
212
Location =
ResponseCacheLocation
.Any,
223
Location =
ResponseCacheLocation
.Any,
258
Location =
ResponseCacheLocation
.Any,
269
Location =
ResponseCacheLocation
.Any,
280
Location =
ResponseCacheLocation
.Client,
291
Location =
ResponseCacheLocation
.Client,
302
Location =
ResponseCacheLocation
.Any,
339
Location =
ResponseCacheLocation
.Any,
350
Location =
ResponseCacheLocation
.Any,
361
Location =
ResponseCacheLocation
.Client,
372
Location =
ResponseCacheLocation
.Client,
384
Location =
ResponseCacheLocation
.Any,
420
Location =
ResponseCacheLocation
.None,
440
Location =
ResponseCacheLocation
.None,
481
Location =
ResponseCacheLocation
.None
483
executor.Location =
ResponseCacheLocation
.Client;
ResponseCacheAttributeTest.cs (16)
66
{ Duration = 20, Location =
ResponseCacheLocation
.Any, NoStore = false, VaryByHeader = "Accept", VaryByQueryKeys = new[] { "QueryKey" } },
69
{ Duration = 20, Location =
ResponseCacheLocation
.Any, NoStore = false, VaryByHeader = "Accept", VaryByQueryKeys = new[] { "QueryKey" } }
74
{ Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true, VaryByHeader = null, VaryByQueryKeys = null },
77
{ Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true, VaryByHeader = null, VaryByQueryKeys = null }
86
Location =
ResponseCacheLocation
.Any,
95
Location =
ResponseCacheLocation
.Client,
101
{ Duration = 20, Location =
ResponseCacheLocation
.Any, NoStore = false, VaryByHeader = "Accept", VaryByQueryKeys = new[] { "QueryKey" } }
114
Location =
ResponseCacheLocation
.Client,
120
{ Duration = 534, Location =
ResponseCacheLocation
.Client, NoStore = false, VaryByHeader = "Test", VaryByQueryKeys = new[] { "ProfileQueryKey" } }
132
Location =
ResponseCacheLocation
.Client,
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 }
207
Location =
ResponseCacheLocation
.Any,
237
new ResponseCacheAttribute() { Duration = 100, Location =
ResponseCacheLocation
.Any },
241
new ResponseCacheAttribute() { Duration = 100, Location =
ResponseCacheLocation
.Client },
253
Location =
ResponseCacheLocation
.None
Microsoft.AspNetCore.Mvc.RazorPages (1)
Filters\PageResponseCacheFilter.cs (1)
43
public
ResponseCacheLocation
Location
MvcFormSample (1)
Controllers\HomeController.cs (1)
45
[ResponseCache(Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true)]
RazorPagesWebSite (1)
ModelWithResponseCache.cs (1)
9
[ResponseCache(Duration = 10, Location =
ResponseCacheLocation
.Client)]
StaticFilesAuth (1)
Controllers\HomeController.cs (1)
21
[ResponseCache(Duration = 0, Location =
ResponseCacheLocation
.None, NoStore = true)]