How do proxy-cache and rate-limiting plugins work together

Just getting started with Kong, and have a little hello-world configuration working. Our primary reason for using the Kong is to do some rate limiting and proxy caching.

My initial experiments lead me to beleive that when I use these two plugins together, the proxy-cache does it’s thing, but cached responses still count against me for rate-limiting. Is there a way for me to change that behavior so that a cached response doesn’t count against me for rate-limiting?

I’m also considering whether this is a good idea or not, considering it might cause confusion for the end user to see their limit remaining value not decrease because of cached responses. perhaps the best practice is to enable caching and then set your rate limits assuming that there is caching?

/J


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ