dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

Make `get_regions` respect Metadata API's `Cache-Control` header's max-age directive #506

Closed randomir closed 1 month ago

randomir commented 2 years ago

Currently we cache regions for 24h, which is a safe default.

However, if Metadata API response includes Cache-Control header, with max-age directive, we want to cache for up to max-age.

randomir commented 1 month ago

Can be closed when/if we implement #647 and #646.