From 259dc6adaa8744c7a8079b3396962974eb882389 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Fri, 10 Jul 2020 16:08:48 +0100 Subject: [PATCH] Add keepalive caveat Closes https://github.com/github/fetch/issues/780 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 066e9092..eac1ce8d 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,8 @@ fetch('/avatars', { * Not all Fetch standard options are supported in this polyfill. For instance, [`redirect`](#redirect-modes) and [`cache`](https://github.github.io/fetch/#caveats) directives are ignored. + +* `keepalive` is not supported because it would involve making a synchronous XHR, which is something this project is not willing to do. See [issue #700](https://github.com/github/fetch/issues/700#issuecomment-484188326) for more information. #### Handling HTTP error statuses