Skip to content

Commit

Permalink
Mention 304 behaviour in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Mar 20, 2017
1 parent 7656916 commit 75209db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ got('unix:/var/run/docker.sock:/containers/json');
```


## Tip
## Tips

### User Agent

It's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo.

Expand All @@ -316,6 +318,10 @@ got('todomvc.com', {
});
```

### 304 Responses

Bear in mind, if you send an `if-modified-since` header and receive a `304 Not Modified` response, the body will be empty. It's your responsibility to cache and retrieve the body contents.


## Related

Expand Down

0 comments on commit 75209db

Please sign in to comment.