Join Nostr
2025-06-25 08:44:25 UTC

Thomas Steiner :chrome: on Nostr: Very exciting Intent to Prototype for "Fetch retry": . This explainer gas all ...

Very exciting Intent to Prototype for "Fetch retry": https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r6QFoqcmdoEMeG4JKJXGLqvGW%2BMr-UZj%2Br6HrQ%3DTNqKYQ%40mail.gmail.com. This explainer gas all details: https://github.com/explainers-by-googlers/fetch-retry/tree/main.

```js
fetch("/api/logging, {
method: "POST",
body: data,
keepalive: true, // Essential for retryAfterUnload: true
retryOptions: {
maxAttempts: 5, // Max 5 retries (6 total attempts)
retryNonIdempotent: true // Required to allow retrying POST
// Use default value for the retry delay etc.
}
});
```