Can a service worker fetch and cache cross-origin assets?
问题 I'm using some service worker code from the Progressive Web app tutorial by Google but I am getting an error: Uncaught (in promise) TypeError: Failed to execute 'clone' on 'Response': Response body is already used The site uses third-party Javascript and stylesheets for web fonts. I want to add assets hosted on these CDNs to the offline cache. addEventListener("fetch", function(e) { e.respondWith( caches.match(e.request).then(function(response) { return response || fetch(e.request).then