20 references to CacheControl
Microsoft.AspNetCore.Authentication.Test (4)
CookieTests.cs (4)
146Assert.True(transaction.Response.Headers.CacheControl.NoCache); 147Assert.True(transaction.Response.Headers.CacheControl.NoStore); 279Assert.True(transaction.Response.Headers.CacheControl.NoCache); 280Assert.True(transaction.Response.Headers.CacheControl.NoStore);
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
HealthCheckMiddlewareTests.cs (2)
432Assert.Equal("no-store, no-cache", response.Headers.CacheControl.ToString()); 467Assert.Null(response.Headers.CacheControl);
Microsoft.AspNetCore.Diagnostics.Tests (6)
ExceptionHandlerTest.cs (6)
186Assert.True(response.Headers.CacheControl.NoCache); 187Assert.True(response.Headers.CacheControl.NoStore); 242Assert.True(response.Headers.CacheControl.NoCache); 243Assert.True(response.Headers.CacheControl.NoStore); 369Assert.True(response.Headers.CacheControl.NoCache); 370Assert.True(response.Headers.CacheControl.NoStore);
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
AntiforgeryTests.cs (3)
35Assert.True(response.Headers.CacheControl.NoCache); 87Assert.True(response.Headers.CacheControl.NoCache); 169Assert.True(response.Headers.CacheControl.NoCache);
RazorPagesTest.cs (1)
1241var cacheControl = response.Headers.CacheControl;
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheTests.cs (2)
1041Assert.Equal(initialResponse.Headers.CacheControl, subsequentResponse.Headers.CacheControl);
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingTests.cs (2)
945Assert.Equal(initialResponse.Headers.CacheControl, subsequentResponse.Headers.CacheControl);