Intent to ship: Clear-Site-Data: "cache" directive for Network cache cleaning

388 views
Skip to first unread message

Manuel Bucher

unread,
Mar 27, 2025, 12:59:26 PMMar 27
to dev-pl...@mozilla.org

Summary: Clear-Site-Data is a HTTP header sent by web servers to clear various browser states for an origin. The "cache" directive indicates to the browser that it should clear the networking cache and various other caches it has for the origin.


We originally shipped “cache” support in Gecko starting with version 63. And unshipped in 93 due to cross-site tracking concerns. The cross-site leak concerns are documented in https://github.com/privacycg/storage-partitioning/issues/11.


The new implementation shipping now has the cross-site leak concerns addressed by only cleaning the partition the header was received in. Tests for them are included in web-platform tests: https://wpt.fyi/results/clear-site-data/clear-cache-partitioning.https.html


Brief history in Gecko:

Shipped in Fx64: https://bugzil.la/1470111

Unshipped in Fx94: https://bugzil.la/1671182


Bug: https://bugzil.la/1930500

Specification: https://www.w3.org/TR/clear-site-data/#clear-cache 

Preference: privacy.clearSiteDataHeader.cache.enabled

Web-platform-tests:


Other Browsers:

  • Blink: Supported since version 61

  • WebKit: Supported since version 17


Mike Taylor

unread,
Mar 27, 2025, 2:23:23 PMMar 27
to Manuel Bucher, dev-pl...@mozilla.org

This is cool to see.

Do you intend to update the spec to match the assertions in your tests?


Other Browsers:

  • Blink: Supported since version 61

  • WebKit: Supported since version 17


--
You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/3a45a306-bda3-463a-98a7-20740d7a40ce%40mozilla.com.

Manuel Bucher

unread,
Mar 31, 2025, 6:52:19 AMMar 31
to Mike Taylor, dev-pl...@mozilla.org
> Do you intend to update the spec to match the assertions in your tests?

Thanks for your interest. Yes, I intend to work on updating the spec.


Mike Taylor

unread,
Apr 14, 2025, 8:54:25 AMApr 14
to Manuel Bucher, dev-pl...@mozilla.org
On 3/31/25 6:52 AM, Manuel Bucher wrote:

>> Do you intend to update the spec to match the assertions in your tests?
>
> Thanks for your interest. Yes, I intend to work on updating the spec.
>
That's great - Chrome would be interested in making sure we're aligned
there. Looking forward to a future PR to review.

In the meantime, it may make sense to mark the new WPTs as tentative.

later,
Mike

Manuel Bucher

unread,
Apr 14, 2025, 9:09:50 AMApr 14
to Mike Taylor, dev-pl...@mozilla.org
On 4/14/25 14:54, Mike Taylor wrote:
> That's great - Chrome would be interested in making sure we're aligned
> there. Looking forward to a future PR to review.
>
> In the meantime, it may make sense to mark the new WPTs as tentative.

Great to hear and thanks for raising. I've opened
https://bugzil.la/1960345 for updating test expectation in the meantime.

Best
Manuel

Reply all
Reply to author
Forward
0 new messages