- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 21 Mar 2019 02:40:26 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/881/review/217140132@github.com>
annevk commented on this pull request. I suppose you could return early somehow for a speculative fetch. What does ignoring mean though? Not invoking fetch at all? > @@ -4072,6 +4076,12 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b <p>is true, and unset otherwise. + <li><p>If <var>httpRequest</var>'s <a for=request>speculative flag</a> is set, + <a for="header list">append</a> + `<code>Sec-Purpose</code>`/`<code>Prefetch</code>` to Is the value not lowercase? > @@ -5628,6 +5638,7 @@ interface Request { readonly attribute RequestRedirect redirect; readonly attribute DOMString integrity; readonly attribute boolean keepalive; + readonly attribute boolean speculative; This would only result in setting the header? You'd still get the response and such? > @@ -5787,6 +5798,11 @@ initially a new {{AbortSignal}} object. <dd>Returns a boolean indicating whether or not <var>request</var> can outlive the global in which it was created. + <dt><code><var>request</var> . <a attribute for=Request>speculative</a></code> + <dd>Returns a boolean indicating whether or not <var>request</var> is a speculative fetch, which + means it could be ignored by the user agent, have low priority, and can outlive the global in which What does ignored mean? Would the promise never resolve? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/881#pullrequestreview-217140132
Received on Thursday, 21 March 2019 09:40:47 UTC