feat: don't abort signal on network fetch
This commit is contained in:
parent
e7091d1514
commit
985dcb15e8
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ const cacheAndRevalidate = async ({ request, preloadResponsePromise, fallbackUrl
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Try to get the resource from the network for 5 seconds
|
// 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
|
// response may be used only once
|
||||||
// we need to save clone to put one copy in cache
|
// we need to save clone to put one copy in cache
|
||||||
// and serve second one
|
// and serve second one
|
||||||
|
|
Loading…
Reference in a new issue