Skip to content

Commit 835862f

Browse files
committed
Adding note to “service-workers mode”
1 parent 584fb3d commit 835862f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

fetch.bs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,24 @@ this flag set are subject to additional processing requirements.
709709
"<code>foreign</code>", or "<code>none</code>". Unless stated otherwise it is
710710
"<code>all</code>".
711711

712+
<div class=note>
713+
This determines which service workers will receive a {{fetch!!event}} event for this fetch.
714+
715+
<dl>
716+
<dt>"<code>all</code>"
717+
<dd>Relevant local and foreign service workers will get a {{fetch!!event}} or
718+
{{foreignfetch!!event}} event for this fetch.
719+
720+
<dt>"<code>foreign</code>"
721+
<dd>Only relevant foreign service workers will get a {{foreignfetch!!event}} event for this fetch.
722+
{{fetch(input)!!method}} uses this to bypass the current service worker if the global is a
723+
{{ServiceWorkerGlobalScope}}.
724+
725+
<dt>"<code>none</code>"
726+
<dd>Neither local nor foreign service workers will get events for this fetch.
727+
</dd>
728+
</div>
729+
712730
<p>A <a for=/>request</a> has an associated
713731
<dfn export for=request id=concept-request-initiator>initiator</dfn>, which is
714732
the empty string,

0 commit comments

Comments
 (0)