Caching API responses

For applications with frequent requests for the same data, you can locally cache API responses.

We provide HTTP cache control headers with each API response, which will provide you with information whether to cache a response from a particular API method and for how long. These are generally recommended values adjusted for each API method, but you are free to use your own caching strategy.

The following HTTP Cache control headers will be returned for methods that are recommended to be cached:

Cache-Control:    private, max-age=432000
Last-Modified:    Tue, 13 Apr 2020 15:03:49 GMT

The parameter "max-age" returns the time in seconds.

For methods that are not recommended to be cached you will receive the below HTTP header:

Cache-Control:    no-cache, no-store