Cache.addAll() takes an array of Request objects, both in the Service Worker spec and the MDN docs. Except that it doesn’t 
It does look like that, right?! But in every example and in practice, it’s an array of string URLs.
-
-
that's because requestinfo is either a request or a url: http://searchfox.org/mozilla-central/source/servo/components/script/dom/webidls/Request.webidl#7 …
-
Sure, but that’s not what MDN says, and the spec says Request not RequestInfo. Imma update these docs...
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.