[whatwg/fetch] Retry failed requests (#1271)

Following up on issue #116 

Retry fetch requests is a heavily used feature as evidence of library usage:
https://github.com/sindresorhus/p-retry - 2.5m users
https://www.npmjs.com/package/fetch-retry

I'd like to discuss options for browser to handle this.

1) Fetch automatically retries if the server sends a `retry-after` header
2) Fetch takes a `{ retries: # }` param to retry request on non response.ok 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1271

Received on Thursday, 22 July 2021 15:47:29 UTC