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

Make caching policy work correctly when placed after apicast in the chain #674

Merged
merged 4 commits into from
Apr 23, 2018

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Apr 19, 2018

Fixes #671

@davidor davidor force-pushed the export-cache-handler-caching-policy branch from ccf94c2 to 98bcaef Compare April 19, 2018 13:05
@davidor davidor requested a review from mikz April 19, 2018 13:13
davidor added 4 commits April 23, 2018 11:37
Using rewrite() instead of export() causes problems when combining this
policy with the apicast one.

The reason is that the apicast policy uses the cache handler in its
rewrite phase, and this policy sets it in the same phase. This means
that currently, the caching policy only works when placed before the
apicast policy in the chain. There's no reason why it should be that
way, and setting the handler in export() instead of rewrite() should fix
the issue.
@davidor davidor force-pushed the export-cache-handler-caching-policy branch from fed8f61 to ef54de5 Compare April 23, 2018 09:39
Copy link
Contributor

@mikz mikz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@davidor davidor merged commit fe00d05 into master Apr 23, 2018
@davidor davidor deleted the export-cache-handler-caching-policy branch April 23, 2018 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants