 {                         throw new TypeError('Bad response status');                         } else {                         return res;                         }                     })                     .catch(() => {                         fetch(requestObj).then(response => {                         console.log(response);                         if (response.ok || (response.type === 'opaque' && response.status === 0)) {                             caches.open('v0').then(cache => {                             cache.put(requestObj, response);                             });                         }                         return response;                         });                         return fetch(requestObj);                     });                 }                 