by rubyrescue · 15y ago · 0 comments
I guess my point is that if i have to pick, i'd rather occasionally have two request urls with a minor version difference that are actually the same resource than two urls that appear to be the same resource but are not because one was requested with a header that affects the returned data.
We modify the response all the time based on headers like User-Agent, Referer, If-Unmodified-Since, Accept-Language and others, so using Accept for versioning isn't really that strange.
Referer, If-Unmodified-Since: these only decide if you respond or don't or error, they don't generally change a successful transfer
Accept-Language: I was under the impression that this was buggy and not well-supported, but it is a good example in theory