3scale/apisonator

'3scale-Limit-Reset' Not useful when rate-limited

davidor opened this issue · 2 comments

The limit headers return the remaining quota and the reset time based on the most constrained limit that applies.
When the request is rate-limited, these headers return incorrect information.

I tried defining a metric with 2 limits:

  1. 5 requests / minute.
  2. 100k requests / year.

After making 6 requests in a minute, I would expect to see a reset-time close to 60 seconds. However, it returns the remaining for the year.

@davidor is this change in the backend?

@davidor is this change in the backend?