fix cache key and handle rate limiting responses