Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VaryByCustom #2602

Closed
aspnet-hello opened this issue Jan 2, 2018 · 2 comments
Closed

VaryByCustom #2602

aspnet-hello opened this issue Jan 2, 2018 · 2 comments
Labels
affected-very-few This issue impacts very few customers area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-response-caching severity-nice-to-have This label is used by an internal tool
Milestone

Comments

@aspnet-hello
Copy link

From @AdnanCukur on Wednesday, October 25, 2017 12:21:13 AM

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 ?

Copied from original issue: aspnet/ResponseCaching#140

@aspnet-hello
Copy link
Author

From @Tratcher on Wednesday, October 25, 2017 5:24:28 AM

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

@muratg muratg added this to the Backlog milestone Jan 10, 2019
@JunTaoLuo JunTaoLuo added affected-very-few This issue impacts very few customers enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-nice-to-have This label is used by an internal tool labels Nov 9, 2020 — with ASP.NET Core Issue Ranking
@JunTaoLuo
Copy link
Contributor

This will be considered as part of the work on OutputCaching: #27387.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affected-very-few This issue impacts very few customers area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-response-caching severity-nice-to-have This label is used by an internal tool
Projects
None yet
Development

No branches or pull requests

5 participants