Open ocharles opened 12 years ago
I also vote for 1. Though we should encourage client library developers to also cache locally and not request the same resource multiple times in a short period of time, unless specifically requested to do so by the end user.
In various responses, we provide hyperlinks to auxiliary data. For example, the artist that a set of artist aliases belong to, or the label that an artist-label relationship points to. The question is:
I personally am in favour of 1 (hence writing it so!), and my rationale is as follows. With aggressive cache control headers, fetching this data can effectively be reduced to a no-op once the client has requested this data once. As per rate limiting, requesting something that hits the cache does not cost against the rate limiter. Thus this data is usable by clients at almost no cost, and the data only has to be transmitted once, rather than multiple times.