Open warpr opened 12 years ago
Could you outline what you think the pros and cons of URIs vs absolute paths vs relative paths are?
Full URIs:
Pro: much easier for client authors to understand and use. Con: potentially large response size
URIs relative to Content-Base:
Pro: smaller response size Con: requires the use of a relatively obscure header. Con: it is not immediately clear to a client developer which strings are supposed to be links.
Absolute URIs:
Pro: response size not as small as relative URIs, but still considerably smaller than absolute URIs. Con: it is not immediately clear to a client developer which strings are supposed to be links.
Personally, I prefer full URIs, like you've already used. IF we decide to stick with full URIs, this github issue should still answer the question of whether to recommend or mandate gzipped responses.
I don't think we should mandate gzip, but just encourage it. I mean, that's kinda how gzip is meant to work (a client says they can accept it, so we deliver it).
+1 to ocharles' gzip comment.
Personally I like the Content-Base solution -- its really a very minor effort to grok and adapt to this solution. So, I vote for 1, with a limited dose of 3.
I vote for full URIs, not Content-Base. I'm not convinced that the size of the response truly warrants this level of optimization yet. I like the clarity that things are absolutely a link, and not just how text happened to be formatted.
In each of the example responses in the document you've used full URLs. In responses with many links (e.g. a compilation album with many tracks and featured artists) this could be a considerable percentage of the response size.
Possible solutions:
Should we adopt one of these solutions?