Re: [fetch] [Question] Is there any suggested way to tell if we are dealing with a fetch request server-side? (#58)

The standard Accept header can be used to perform content negotiation with the server for responses needed by a `fetch` request vs a normal full page request. Something like:

```js
fetch('/users', {headers: {Accept: 'text/partial'}})
```

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/58#issuecomment-107651669

Received on Monday, 1 June 2015 17:45:35 UTC