Skip to content

Conversation

@lqlive
Copy link

@lqlive lqlive commented Nov 20, 2025

Add IOutputCachePolicyProvider for policy validation

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Description

This PR implements the API proposal from issue #52419 to add policy validation capabilities to the OutputCache middleware, following the same pattern as IAuthorizationPolicyProvider and ICorsPolicyProvider.

This PR completes and addresses all the feedback from the previous PR #57362, which was closed due to missing implementations of the API review requirements.

What This PR Adds on Top of #57362:

This implementation fully addresses all the feedback from @halter73's API review comments:

Fixes #52419

@github-actions github-actions bot added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares label Nov 20, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Nov 20, 2025
@lqlive
Copy link
Author

lqlive commented Nov 21, 2025

@dotnet-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OutputCache configuration - policy validation

1 participant