diff --git a/packages/demo/src/app/common/dependency-link/dependency-link.component.ts b/packages/demo/src/app/common/dependency-link/dependency-link.component.ts index af0ad89ca1..6e2a13c073 100644 --- a/packages/demo/src/app/common/dependency-link/dependency-link.component.ts +++ b/packages/demo/src/app/common/dependency-link/dependency-link.component.ts @@ -59,7 +59,7 @@ export class DependencyLinkComponent implements OnDestroy { const cachedResponse = caches .match(url) - .catch(() => fetch(url)) + .then(response => (response !== undefined ? response : fetch(url))) .then(response => { caches.open('npm').then(cache => { void cache.put(url, response);