-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
http.send: force_cache option does not override Cache-Control: no-store from server #2841
Comments
The initial intent of the |
Thanks for providing some background on that @ashutosh-narkar 👍 I think I'm somewhat confused with having an option named
As opposed to the |
That's a good point @anderseknert. I imagined |
Fixes open-policy-agent#2841 Signed-off-by: Anders Eknert <anders.eknert@bisnode.com>
Fixes #2841 Signed-off-by: Anders Eknert <anders.eknert@bisnode.com>
Expected Behavior
force_cache
/force_cache_duration_seconds
is documented as fields that "can be used to override the cache directives defined by the server".Actual Behavior
The presence of a
Cache-Control: no-store
directive is still respected, and the response will not be cached.Steps to Reproduce the Problem
OPA version 0.24.0+
Create an endpoint with a cache-control header including no-store in the response. Call it from
http.send
withforce_cache
/force_cache_duration_seconds
set for forced caching. The endpoint will be called for each invocation of the policy.The text was updated successfully, but these errors were encountered: