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

recommended way to Cache responses from Kong? #1016

Closed
maestr0 opened this issue Feb 24, 2016 · 3 comments
Closed

recommended way to Cache responses from Kong? #1016

maestr0 opened this issue Feb 24, 2016 · 3 comments

Comments

@maestr0
Copy link

maestr0 commented Feb 24, 2016

What is the recommended way to cache responses from Kong?
Does Kong support response caching? Is there any production ready plugin which can do it?

I could probably use Varnish in front of Kong, but I'm looking for a solution I could control from my Kong cluster directly.

Kong architecture diagram shows Caching as one of the features. How is this supposed to work?

Kong architecture diagram

@subnetmarco
Copy link
Member

Currently we recommend leveraging the underlying nginx server to achieve this, with the proxy_cache directive (you will need to manually change the nginx property into kong.yml). A more Kong-esque way of doing this would be to create a caching plugin, like #411 and #412 suggest.

@subnetmarco
Copy link
Member

I will close as duplicate of the mentioned issues.

@itaimalek
Copy link

Hi guys,
so, I'm trying to configure caching with kong.yml as suggested by @thefosk
Nginx configurations added are:

proxy_cache_path /etc/nginx/cache/getuser keys_zone=getuser:5m;
proxy_cache_path /etc/nginx/cache/pasauth keys_zone=pasauth:5m;
proxy_cache_methods GET HEAD POST;

beginner question: how do I configure my route/service to use those directives?

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

No branches or pull requests

3 participants