Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 00d9f84

Browse files
authored
Add cache control entry to document #126
1 parent 1a3e07d commit 00d9f84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ To sum up :
157157
- Otherwise, if a string starts with `RNFetchBlob-file://` (which can simply done by `RNFetchBlob.wrap(PATH_TO_THE_FILE)`), it will try to find the data from the URI string after `RNFetchBlob-file://` and use it as request body.
158158
- To send the body as-is, simply use a `Content-Type` header not containing `;BASE64` or `application/octet`.
159159

160+
> It is Worth to mentioning that the HTTP request uses cache by default, if you're going to disable it simply add a Cache Control header `'Cache-Control' : 'no-store'`
161+
160162
> After 0.9.4, we disabled `Chunked` transfer encoding by default, if you're going to use it, you should explicitly set header `Transfer-Encoding` to `Chunked`.
161163
162164
### Download example : Fetch files that needs authorization token

0 commit comments

Comments
 (0)