mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
653 stars 73 forks source link

Critical CH: Client Hints Reliability mechanism #479

Open amtunlimited opened 3 years ago

amtunlimited commented 3 years ago

Request for Mozilla Position on an Emerging Web Specification

Other information

The Client Hint Reliability proposal is a set of features aimed at making Client Hints more reliably available and mitigating mis-matches between a site's preferences and the preferences stored in the browser. The idea behind the Critical-CH response header is to signal to browsers that there are hints the server would rather pay a round trip for than not have not the first request. The basic algorithm is as follows:

If, after receiving a request with Critical-CH and Accept-CH headers, there is a hint indicated in the Critical-CH header that the browser did not send but would not block sending, the browser should store the new CH preferences, drop the request, and start a new one with the new headers included.

annevk commented 3 years ago

(See also #79 and #202 about Client Hints, both non-harmful.)