diff --git a/src/fetch.ts b/src/fetch.ts index c1561a6..2a41d77 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -1,5 +1,7 @@ import { Constants } from './constants'; +const API_ATTEMPTS = 16; + export const fetchUsingGuest = async ( status: string, event: FetchEvent @@ -40,7 +42,7 @@ export const fetchUsingGuest = async ( const cache = caches.default; - while (apiAttempts < 12) { + while (apiAttempts < API_ATTEMPTS) { const csrfToken = crypto .randomUUID() .replace(