Hacker News new | ask | show | jobs
by mikl 2372 days ago
> potential in headers like "Save-Data: on"

Yes, headers, if added, should be about the capabilities of the browser, not the browser vendor, the underlying OS or hardware.

1 comments

The problem with expressing capabilities is they will never be binary in the real world, and the feature set is growing constantly.

Often with emerging functionality, one vendor will do an experiment, other vendors will refine and it will go through the standards process. If Chromium first introduces `Whargarbl: On` and WebKit implements it differently, the header may become something like `Whargarbl: -webkit-frobnicate`. Dozens of headers like that may be sent.

This is almost certainly better suited to feature testing in the runtime.

No doubt, feature detection is much better. There are a few things that needs to be on the header-level, like compression standards and encoding, but the less data is attached to a request by default, the better.