feat: don't abort signal on network fetch

This commit is contained in:
Ayo Ayco 2024-08-18 19:49:35 +02:00
parent e7091d1514
commit 985dcb15e8

View file

@ -82,7 +82,7 @@ const cacheAndRevalidate = async ({ request, preloadResponsePromise, fallbackUrl
try {
// Try to get the resource from the network for 5 seconds
const responseFromNetwork = await fetch(request.clone(), { signal: AbortSignal.timeout(5000) });
const responseFromNetwork = await fetch(request.clone());
// response may be used only once
// we need to save clone to put one copy in cache
// and serve second one