From 1cbc4a4283a7290d133338967030e1cc0b3fab7e Mon Sep 17 00:00:00 2001
From: Ian Hickson Fetch the resource normally. If this results 4xx or 5xx status codes
- or equivalent, or if there were network errors, then instead fetch, from
- the cache, the resource of the fallback entry corresponding to the
- namespace with the longest matching <path> component. Abort these
- steps.
Fail the resource load. @@ -30721,7 +30721,8 @@ JSURI: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
If this results 4xx or 5xx status codes or equivalent, or if there - were network errors, then abort these steps. + were network errors, or if the user canceled the download, then abort + these steps.
Wait for there to be no running scripts, or at least no running @@ -31446,7 +31447,7 @@ user reload must be equivalent to .reload() title=concept-appcache-manifest>manifest with the same origin as the URI in question, and that have this URI as one of their entries (excluding entries marked as manifest), and that + href="#foreign" title=concept-appcache-foreign>foreign), and that already contain their manifest, categorised as a manifest. If so, then the user agent must then fetch the resource from the application cache, and was to be fetched using HTTP GET or equivalent, and its URI matches the opportunistic - caching namespace of one or more application caches, then:
+ caching namespace of one or more application caches, and the user + didn't cancel the navigation attempt during the previous step, then:Let candidate be the fallback resource specified for + the opportunistic caching namespace in question. If multiple + application caches match, the user agent must use the fallback of the + most appropriate + application cache of those that match.
+ +If candidate is not marked as foreign, then the user agent must + discard the failed load and instead continue along these steps using + candidate as the resource.
+ +For the purposes of session history (and features that depend on + session history, e.g. bookmarking) the user agent must use the URI of + the resource that was requested (the one that matched the + opportunistic caching namespace), not the fallback resource. However, + the user agent may indicate to the user that the original page load + failed, that the page used was a fallback resource, and what the URI + of the fallback resource actually is.
+ +Once the download is complete, if there were no errors and the user + didn't cancel the request, the user agent must cache the resource in + all the application caches that have a matching opportunistic caching + namespace, categorised as opportunistically cached entries. + Meanwhile, the user must continue along these steps.
If the resource's URI has the same origin as the manifest's URI, and the start of
- the resource's URI's <path> component is exactly matched by
- the <path> component of an opportunistic caching
+ If the resource's URI has the same origin as the
+ manifest's URI, and the start of the resource's URI's <path>
+ component is exactly matched by the <path> component of an
+ opportunistic caching
namespace in the application cache, then:
Fetch the resource normally. If this results 4xx or 5xx status
- codes or equivalent, or if there were network errors, then instead
- fetch, from the cache, the resource of the fallback entry
corresponding to the namespace with the longest matching
<path> component. Abort these steps.
If this results 4xx or 5xx status codes or equivalent, or if - there were network errors, then abort these steps.
Let candidate be the fallback resource + specified for the opportunistic caching namespace in + question. If multiple application caches match, the user agent + must use the fallback of the most appropriate application + cache of those that match.
+ +If candidate is not marked as foreign, then the user + agent must discard the failed load and instead continue along + these steps using candidate as the + resource.
+ +For the purposes of session history (and features that depend + on session history, e.g. bookmarking) the user agent must use + the URI of the resource that was requested (the one that matched + the opportunistic caching namespace), not the fallback + resource. However, the user agent may indicate to the user that + the original page load failed, that the page used was a fallback + resource, and what the URI of the fallback resource actually + is.
+ +Once the download is complete, if there were no errors and + the user didn't cancel the request, the user agent must cache + the resource in all the application caches that have a matching opportunistic + caching namespace, categorised as opportunistically cached + entries. Meanwhile, the user must continue along these + steps.
+ +