- From: Shivani Sharma <notifications@github.com>
- Date: Wed, 22 Apr 2020 15:04:27 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/943/review/398622754@github.com>
@shivanigithub commented on this pull request.
> @@ -2050,6 +2050,34 @@ clearly stipulates that <a>connections</a> are keyed on
WebSocket saner -->
+<h3 id=http-cache-partitions>HTTP cache partitions</h3>
+
+<p>To
+<dfn lt="determine the HTTP cache partition|determining the HTTP cache partition">determine the HTTP cache partition</dfn>,
+given <var>request</var>, run these steps:
+
+<ol>
+ <li><p>If <var>request</var> is a <a>navigation request</a>, set <var>environmentSettings</var> to
+ <var>request</var>'s <a for="environment">target browsing context</a>'s <a>active document</a>'s
+ <a>environment settings object</a>. Otherwise let <var>environmentSettings</var> be
+ <var>request</var>'s <a for=request>client</a>.
Got it.
I was thinking the following for getting the top-level origin for iframe and top-level navigation requests:
- iframe navigation request: request's reserved client's target browsing context's top-level browsing context's active document's origin. As I understand it, In the case given above target browsing context's top-level browsing context will be C and not A/B, right?
- top-level navigation request: request's origin
--
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/943#discussion_r413364231
Received on Wednesday, 22 April 2020 22:04:40 UTC