Merged in feat/sw-3006-timeout-fetch (pull request #2335)
feat(SW-3006): added default timeout to all requests * feat(sw-3006): added default timeout to all requests * Fixed spreading Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -26,6 +26,7 @@ async function fetchAndCacheRedirect(lang: Lang, pathname: string) {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
signal: AbortSignal.timeout(15_000),
|
||||
}
|
||||
)
|
||||
|
||||
@@ -39,7 +40,7 @@ async function fetchAndCacheRedirect(lang: Lang, pathname: string) {
|
||||
return null
|
||||
},
|
||||
// longer once tested
|
||||
"1m"
|
||||
"1d"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user