Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit fac6a06

Browse files
committed
Don't handle no-cache with headers yet
1 parent 0985bda commit fac6a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.ResponseCaching/ResponseCachingContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private bool ResponseIsCacheable()
218218

219219
// Check no-cache
220220
// TODO: Handle no-cache with headers
221-
if (ResponseCacheControl.NoCache && ResponseCacheControl.NoCacheHeaders.Count == 0)
221+
if (ResponseCacheControl.NoCache)
222222
{
223223
return false;
224224
}

0 commit comments

Comments
 (0)