#871: [FYI] Clear Client Hints via Clear-Site-Data header
Discussions
2023-07-mos-eisley
Tess: all things being equal it seens like clear site data header... user feedback of building on quicksand.. proposals that don't have consensus built on top of proposals that also don't have consensus..
Hi – the proposal itself seems fine, when taken in the context of client hints.
A meta comment regarding client hints: In 2018, the TAG gave an initially positive review to the [client hints design](https://github.com/w3ctag/design-reviews/issues/320). However subseuqntly client hints has failed to garner multi-stakeholder support, specifically from other browsers. In more recent reviews, we have been flagging this and trying to advocate for multi-browser support (multiple implementations) as a key aspect of new features we want to add to the web. The TAG remains concerned that we are building new features and technologies on top of other features that do not enjoy multiple implementations and are not supported across multiple platforms.
Dan: Satisfied with concerns?
Tess: OK.
Lea: OK.
closed and commented
OpenedJul 17, 2023
こんにちは TAG-さん!
I'm requesting a TAG review of Clear Client Hints via Clear-Site-Data header.
Websites will now be able to clear the client hints cache using
Clear-Site-Data: “clientHints”
. Client hints will also now be cleared when “cookies”, “cache”, or “*” are targeted by the same header. This is because if the user clears cookies in the UI client hints are already cleared as well, the client hints cache is a cache, and to be consistent with wildcard targets respectively.Further details:
You should also know that...
The only current way for a website to force the client hint cache to be cleared is to send a single header like
Accept-CH:
with no content. If any otherAccept-CH:
headers are sent at all (empty or not) this will cause all of them to be ignored. If theAccept-CH
header is injected into an HTTP response at multiple points, it can be difficult to silence them all when one part of the server wishes to clear all hints. This header provides a way to do that, as theClear-Site-Data: “clientHints”
header clears the cache and causes all otherAccept-Ch
orCritical-CH
headers to be ignored.We'd prefer the TAG provide feedback as (please delete all but the desired option):
🐛 open issues in our GitHub repo for each point of feedback