igrigorik / http-client-hints

401 stars 24 forks source link

Save-Data: client preference for reduced data usage #55

Closed igrigorik closed 9 years ago

igrigorik commented 9 years ago

For many users, internet access is slow and expensive. To reduce costs many users opt-in to use optimization services (proxies) that fetch and optimize resources on their behalf - e.g. re-encode images at lower quality, compress text resources, etc. However, this model has several limitations:

The “Save-Data” request header is an end-to-end header that addresses both of the above limitations: it is advertised by the browser based on user opt-in, and it is sent to all origins. The presence of the header is an indicate of explicit user opt-in into a "reduced data usage" mode.

Note: the fact that Save-Data is an indication of explicit user opt-in is important. This allows the user to opt-out from such experience - e.g. user may be on slow or expensive network but may still want to fetch high resolution images for one reason or another.


An example implementation in Google Chrome:

yoavweiss commented 9 years ago

lgtm

mdwelsh commented 9 years ago

lgtm

igrigorik commented 9 years ago

Haven't heard back any objections or alternative proposals from blink-dev or other channels, merging.