I've noticed that all the endpoints have the following headers:
Cache-Control: no-cache, no-store
Also, there are no other cache-related headers being implemented. (eg:
Etag,
Expires) This basically tells me that the API does not want to be cached at all, but I think there are valid use-cases for wanting to use a cache when interacting with Stripe.
In my case, I have a service that sits between our application and Stripe, normalizing and managing billing accounts, it would be great if that long-running process could set up an LRU cache and lighten the load being applied to your servers. (not to mention improve performance on our end since we wouldn't need to go through a Stripe round-trip if the data is cached)
Is there any chance of Stripe defining a cache strategy for the API? I am hesitant to write a cache of my own, since Stripe explicitly states it does not want clients to cache it's responses. (see headers above)