Skip to content

Make sure cache is added after pathprepend and addHost plugins #414

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

Merged
merged 2 commits into from
Aug 1, 2016

Conversation

Nyholm
Copy link
Collaborator

@Nyholm Nyholm commented Jul 31, 2016

The cache plugin creates a cache key from the request. If we modify the request after the cache plugin we may risk that we create a wrong key and serve a wrong cached response.

This PR make sure we always have the cache plugin last in the chain.

@cursedcoder cursedcoder merged commit 92f6f2d into KnpLabs:master Aug 1, 2016
@Nyholm
Copy link
Collaborator Author

Nyholm commented Aug 1, 2016

Thank you for merging

@Nyholm Nyholm deleted the prepend_plugin branch August 1, 2016 07:47
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