I have a service with proxy-cache activated, and I want to activate a rate limit too. Is there a way to configure this so the requests that hits the cache does not count for the rate limit?
For example. I configure a 5 request per minute limit. If a service makes 10 requests but 7 of them hits the cache, the service will only “consume” 3 requests from the rate-limit because the other 7 are answered by the cache.
I’m trying and can`t make it to work. It seems that the rate limit plugin has more priority than the cache one. I don’t know if this kind of behaviour can be configured in Kong.