@@ -3329,12 +3329,29 @@ <h3 id="http-network-or-cache-fetch"><span class="secno">5.5 </span>HTTP-network
3329
3329
< li > < p > Let < var > response</ var > be null.
3330
3330
3331
3331
< li >
3332
- < p > If < var > httpRequest</ var > 's
3333
- < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is neither
3334
- "< code title =""> no-store</ code > " nor "< code title =""> reload</ code > ", and there is a < em > complete</ em >
3335
- < a href ="#concept-response " title ="concept-response "> response</ a > in the HTTP cache for
3336
- < var > httpRequest</ var > run these substeps:
3337
- <!-- XXX xref "HTTP cache" -->
3332
+ < p > If < var > httpRequest</ var > 's < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is
3333
+ "< code title =""> default</ code > ", then follow the normal procedures to determine whether the
3334
+ HTTP cache has a < a href ="#concept-response " title ="concept-response "> response</ a > for < var > httpRequest</ var > .
3335
+
3336
+ < p class ="note "> Including taking into account any
3337
+ `< code title ="http-cache-control "> Cache-Control</ code > ` and `< code title ="http-pragma "> Pragma</ code > `
3338
+ < a href ="#concept-header " title ="concept-header "> headers</ a > .
3339
+
3340
+ < p > If there is such a < a href ="#concept-response " title ="concept-response "> response</ a > , then set < var > response</ var >
3341
+ to it. Otherwise, if necessary, modify < var > httpRequest</ var > 's
3342
+ < a href ="#concept-request-header-list " title ="concept-request-header-list "> header list</ a > with revalidation or resume
3343
+ < a href ="#concept-header " title ="concept-header "> headers</ a > .
3344
+ <!-- XXX modify, revalidation headers, resume headers -->
3345
+
3346
+ < p class ="note "> Unfortunately this is vaguer than intended. The HTTP cache specification does not
3347
+ provide the necessary hooks to make this (or indeed, what follows) crystal clear.
3348
+ <!-- XXX HTTP cache -->
3349
+
3350
+ < li >
3351
+ < p > Otherwise, if < var > httpRequest</ var > 's < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a >
3352
+ is neither "< code title =""> no-store</ code > " nor "< code title =""> reload</ code > ", and there is a
3353
+ < em > complete</ em > < a href ="#concept-response " title ="concept-response "> response</ a > in the HTTP cache for
3354
+ < var > httpRequest</ var > , then run these substeps:
3338
3355
3339
3356
< ol >
3340
3357
< li >
@@ -3347,28 +3364,19 @@ <h3 id="http-network-or-cache-fetch"><span class="secno">5.5 </span>HTTP-network
3347
3364
< a href ="#concept-header " title ="concept-header "> header</ a > into account.
3348
3365
3349
3366
< li > < p > Otherwise, if < var > httpRequest</ var > 's
3350
- < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is "< code title =""> default</ code > " and the
3351
- < a href ="#concept-response " title ="concept-response "> response</ a > in the HTTP cache for < var > httpRequest</ var > does
3352
- not require revalidation, then set < var > response</ var > to that
3353
- < a href ="#concept-response " title ="concept-response "> response</ a > .
3354
- <!-- XXX xref "revalidation" -->
3355
-
3356
- < li > < p > Otherwise, if < var > httpRequest</ var > 's
3357
- < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is either "< code title =""> default</ code > "
3358
- or "< code title =""> no-cache</ code > ", modify < var > httpRequest</ var > 's
3359
- < a href ="#concept-request-header-list " title ="concept-request-header-list "> header list</ a > with revalidation
3360
- < a href ="#concept-header " title ="concept-header "> headers</ a > .
3367
+ < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is "< code title =""> no-cache</ code > ", then
3368
+ modify < var > httpRequest</ var > 's < a href ="#concept-request-header-list " title ="concept-request-header-list "> header list</ a > with
3369
+ revalidation < a href ="#concept-header " title ="concept-header "> headers</ a > .
3361
3370
<!-- XXX modify, revalidation headers -->
3362
3371
</ ol >
3363
3372
3364
3373
< li > < p > Otherwise, if < var > httpRequest</ var > 's
3365
- < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is either
3366
- "< code title =""> default</ code > " or "< code title =""> force-cache</ code > ", and there is a
3367
- < em > partial</ em > < a href ="#concept-response " title ="concept-response "> response</ a > in the HTTP cache for
3368
- < var > httpRequest</ var > , modify < var > httpRequest</ var > 's
3374
+ < a href ="#concept-request-cache-mode " title ="concept-request-cache-mode "> cache mode</ a > is "< code title =""> force-cache</ code > ", and
3375
+ there is a < em > partial</ em > < a href ="#concept-response " title ="concept-response "> response</ a > in the HTTP cache for
3376
+ < var > httpRequest</ var > , then modify < var > httpRequest</ var > 's
3369
3377
< a href ="#concept-request-header-list " title ="concept-request-header-list "> header list</ a > with resume
3370
3378
< a href ="#concept-header " title ="concept-header "> headers</ a > .
3371
- <!-- XXX xref partial, modify, resume headers -->
3379
+ <!-- XXX partial, modify, resume headers -->
3372
3380
3373
3381
< li >
3374
3382
< p > If < var > response</ var > is null, run these substeps:
0 commit comments