12 references to ContainsCacheDirective
Microsoft.AspNetCore.ResponseCaching (11)
ResponseCachingMiddleware.cs (1)
230
if (HeaderUtilities.
ContainsCacheDirective
(context.HttpContext.Request.Headers.CacheControl, CacheControlHeaderValue.OnlyIfCachedString))
ResponseCachingPolicyProvider.cs (10)
41
if (HeaderUtilities.
ContainsCacheDirective
(cacheControl, CacheControlHeaderValue.NoCacheString))
50
if (HeaderUtilities.
ContainsCacheDirective
(requestHeaders.Pragma, CacheControlHeaderValue.NoCacheString))
63
return !HeaderUtilities.
ContainsCacheDirective
(context.HttpContext.Request.Headers.CacheControl, CacheControlHeaderValue.NoStoreString);
71
if (!HeaderUtilities.
ContainsCacheDirective
(responseCacheControlHeader, CacheControlHeaderValue.PublicString))
78
if (HeaderUtilities.
ContainsCacheDirective
(responseCacheControlHeader, CacheControlHeaderValue.NoStoreString))
85
if (HeaderUtilities.
ContainsCacheDirective
(responseCacheControlHeader, CacheControlHeaderValue.NoCacheString))
109
if (HeaderUtilities.
ContainsCacheDirective
(responseCacheControlHeader, CacheControlHeaderValue.PrivateString))
202
if (HeaderUtilities.
ContainsCacheDirective
(cachedCacheControlHeaders, CacheControlHeaderValue.MustRevalidateString)
203
|| HeaderUtilities.
ContainsCacheDirective
(cachedCacheControlHeaders, CacheControlHeaderValue.ProxyRevalidateString))
210
var maxStaleExist = HeaderUtilities.
ContainsCacheDirective
(requestCacheControlHeaders, CacheControlHeaderValue.MaxStaleString);
Microsoft.Net.Http.Headers.Tests (1)
HeaderUtilitiesTest.cs (1)
173
Assert.Equal(contains, HeaderUtilities.
ContainsCacheDirective
(new StringValues(headerValues), targetValue!));