docs: improved override docs

This commit is contained in:
arthurfiorette 2022-06-05 20:56:34 -03:00
parent 67bad3772d
commit dfe1595f3b
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555
2 changed files with 6 additions and 6 deletions

View File

@ -166,8 +166,8 @@ Possible types:
This option bypasses the current cache and always make a new http request. This will not
delete the current cache, it will just replace the cache when the response arrives.
Unlike from `cache: false`, this will not disable the cache, it will just ignore the cache
checks before making the request. This way, all options are still available and will work
as expected.
Unlike as `cache: false`, this will not disable the cache, it will just ignore the
pre-request cache checks before making the request. This way, all post-request options are
still available and will work as expected.
Default: `false`

6
src/cache/cache.ts vendored
View File

@ -114,9 +114,9 @@ export type CacheProperties<R = unknown, D = unknown> = {
* This option bypasses the current cache and always make a new http request. This will
* not delete the current cache, it will just replace the cache when the response arrives.
*
* Unlike from `cache: false`, this will not disable the cache, it will just ignore the
* cache checks before making the request. This way, all options are still available and
* will work as expected.
* Unlike as `cache: false`, this will not disable the cache, it will just ignore the
* pre-request cache checks before making the request. This way, all post-request
* options are still available and will work as expected.
*
* @default false
*/