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

VaryByCustom #140

Closed
AdnanCukur opened this issue Oct 25, 2017 · 2 comments
Closed

VaryByCustom #140

AdnanCukur opened this issue Oct 25, 2017 · 2 comments

Comments

@AdnanCukur
Copy link

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 ?

@Tratcher
Copy link
Member

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

@aspnet-hello
Copy link

This issue was moved to dotnet/aspnetcore#2602

@aspnet aspnet locked and limited conversation to collaborators Jan 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants