Restore `Clear-Site-Data: cache` functionality
Categories
(Toolkit :: Data Sanitization, enhancement, P2)
Tracking
()
People
(Reporter: manuel, Assigned: manuel)
References
()
Details
(Keywords: dev-doc-complete, priv-triaged)
Attachments
(1 file)
With https://github.com/privacycg/storage-partitioning/issues/11 addressed (within Firefox) and concerns for Webcompat breakage, we want to restore the feature again.
Assignee | ||
Updated•9 months ago
|
Assignee | ||
Comment 1•9 months ago
|
||
Comment 2•8 months ago
|
||
Manuel, if I understand this bug correctly, once your patch lands, Clear-Site-Data: cache
will be generally available again without being put behind a pref. Correct?
If so, the related browser compat data needs to be updated. Otherwise, it should be added to the Experimental Features page.
Sebastian
Assignee | ||
Comment 3•8 months ago
•
|
||
Hi. Yes. However I haven't gotten around to adding tests. There didn't exist any when the feature landed previously. I'm looking into writing some web-platform tests, but haven't gotten around doing that just yet.
I'll slightly switch the strategy for the patch and introduce a pref (enabled by default), due to complications our current indexing within the http cache making it necessary to iterate through all files. This is a really expensive operation. I'm investigating the performance impact and possible strategies to mitigate the problem.
Updated•5 months ago
|
Assignee | ||
Comment 4•5 months ago
|
||
I'd wait for whether Bug 1950058 lands as planned, but would then proceed to enable Clear-Site-Data: "cache"
network cache cleaning for all channels. (And start necessary work for release notes + intent-to-ship)
Comment 6•5 months ago
|
||
bugherder |
Assignee | ||
Comment 7•5 months ago
•
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: More webcompat.
[Affects Firefox for Android]: Yes
[Suggested wording]: Firefox enables the "cache" directive for the "Clear-Site-Data" header, allowing websites to clear the networking cache. The header gives websites more control over data stored for their users, such as clearing the network cache during logout, mitigating the risk of privacy leaks.
[Links (documentation, blog post, etc)]: Spec / Doc links related to this feature:
Comment 8•5 months ago
|
||
Added to 138 nightly release notes and is on track for the final 138 release notes
Comment 9•4 months ago
|
||
FF138 MDN docs for this can be tracked in https://github.com/mdn/content/issues/38909 - just a release note, removal from experimental data, and updating the compatibility data.
Description
•