- From: Kornel <notifications@github.com>
- Date: Thu, 10 Sep 2015 13:47:26 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 10 September 2015 20:47:53 UTC
The [Beacon API](http://www.w3.org/TR/beacon/) adds a new feature to the platform — non-Service-Worker requests that outlive their document — but adds it in a high-level API with a narrow use-case. There is no [lower-level primitive in that "explains"](https://extensiblewebmanifesto.org/) the Beacon API. Perhaps `fetch` could be it? ``` function sendBeacon(url, data) { fetch(url, { method: 'post', body, detachedFromDocumentLifetime: !!"bikeshed", ageHeaderUpdatedOnRetry: 'Beacon-Age', }); } ``` --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/124
Received on Thursday, 10 September 2015 20:47:53 UTC