Closed Bug 1930500 Opened 9 months ago Closed 5 months ago

Restore `Clear-Site-Data: cache` functionality

Categories

(Toolkit :: Data Sanitization, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
relnote-firefox --- 138+
firefox138 --- fixed

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.

Summary: Restore `Clear-Site: data` functionality → Restore `Clear-Site-Data: cache` functionality

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

Flags: needinfo?(manuel)
Keywords: dev-doc-needed

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.

Flags: needinfo?(manuel)
Attachment #9438282 - Attachment description: WIP: Bug 1930500 - Restore "Clear-Site-Data: cache" functionality r=pbz → Bug 1930500 - Enable `Clear-Site-Data: "cache"` in all channels r=#anti-tracking

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)

Depends on: 1950058
Pushed by mbucher@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0bfba221c8bd Enable `Clear-Site-Data: "cache"` in all channels r=anti-tracking-reviewers,timhuang
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

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:

relnote-firefox: --- → ?

Added to 138 nightly release notes and is on track for the final 138 release notes

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: