aspnet/ResponseCaching

VaryByCustom

AdnanCukur opened this issue · 2 comments

I have a Claim in my ClaimsPrincipal object, it contains a boolean, and I need the response cache to vary by this boolean.

In MVC 5 I could easily do this with a VaryByCustom string, but I can't figure out how to solve this issue in .NET Core, is this feature missing ?

This has not been implemented. The only extension beyond HTTP caching is VaryByQueryKeys.

This issue was moved to dotnet/aspnetcore#2602