Categories
Posts

HTTP Client Hints: DPR ( device pixel ratio )

From the world of “retina images are still kind of a pain”: clients could include DPR ( device pixel ratio ) details in image requests:

DPR hint automates device-pixel-ratio-based selection and enables delivery of optimal image variant without any changes in markup.

A request from the client for an image would look like:

[code lang=text]
GET /img.jpg HTTP/1.1
User-Agent: Awesome Browser
Accept: image/webp, image/jpg
DPR: 2.0
[/code]

This would be wonderfully helpful to servers that can manipulate image results to best fit the capabilities of clients.

There is also discussion about a RW ( resource width ) header.

One reply on “HTTP Client Hints: DPR ( device pixel ratio )”

Leave a Reply

Your email address will not be published. Required fields are marked *