News for hackers. Stuff that matters.
Re:WebKit has implemented srcset by lukeschlather on Wednesday August 21, 2013 @08:22PM (#6254253)
Theoretically, yes, but that means you need a pretty complicated setup to serve static assets.

Also, this solution can be built into a Javascript shim for older browsers, something header-based would be much harder to do as a shim.

Re:WebKit has implemented srcset by hcarvalhoalves on Wednesday August 21, 2013 @09:57PM (#6254632)
> Theoretically, yes, but that means you need a pretty complicated setup to serve static assets.

Why? There's no difference on the server side, you would have multiple versions of the same file anyway. You're just exchanging the responsibility of getting the right file from the markup to responding with the right file on the server (which is way easier to keep consistent, IMO).

Re:WebKit has implemented srcset by lukeschlather on Thursday August 22, 2013 @11:31AM (#6257737)
The way I see it, keeping it in the markup makes it more straightforward to debug. If it's server-side, all of our developers need direct access to the asset server as soon as there are content negotiation issues. If it's client-side, we can share a highly-available asset server and each developer has their code sandboxed.

In an ideal world, it would be server side. But it would easily mean twice as much work to get there.