Skip to content

Commit

Permalink
Add Clear-Site-Data Clear "cache" interaction with prerender
Browse files Browse the repository at this point in the history
Part of #357.
  • Loading branch information
srwei authored Feb 10, 2025
1 parent f635899 commit d60ce7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions prerendering.bs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
text: session history entry; url: browsing-the-web.html#session-history-entry
text: the worker's lifetime; url: workers.html#the-worker's-lifetime
text: URL and history update steps; url: browsing-the-web.html#url-and-history-update-steps
text: top-level traversable set; url: document-sequences.html#top-level-traversable-set
for: Document
text: abort; url: document-lifecycle.html#abort-a-document
text: destroy; url: document-lifecycle.html#destroy-a-document
Expand Down Expand Up @@ -641,6 +642,15 @@ This stores which client hints each origin has opted into receiving, until it ca
1. Otherwise, [=map/set=] [=Accept-CH cache=][|origin|] to |hintSet|.
</div>

<h3 id="interaction-with-clear-site-data-clear-cache">Interaction with Clear-Site-Data Clear Cache</h3>

<div algorithm="clear cache for origin patch">
Modify [$clear cache for origin$] to add the following step at the end.

1. [=list/For each=] [=navigable/top-level traversable=] |traversable| in the user agent's [=top-level traversable set=]:
1. If |traversable|'s [=navigable/active document=]'s [=Document/origin=] is [=same origin=] with <var ignore>origin</var>, and |traversable| is a [=prerendering traversable=], then [=destroy a top-level traversable|destroy=] |traversable|.
</div>

<h2 id="supports-loading-mode">The \`<dfn export http-header><code>Supports-Loading-Mode</code></dfn>\` HTTP response header</h2>

<em>The following section would be added as a sub-section of [[HTML]]'s <a href="https://html.spec.whatwg.org/multipage/browsers.html#browsers">Loading web pages</a> section.</em>
Expand Down

0 comments on commit d60ce7c

Please sign in to comment.