mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
* Fix #506 * fix fmt * fix docs * fix docs
This commit is contained in:
parent
ee8b6b36a1
commit
473f11c96b
@ -308,7 +308,8 @@ const customPredicate = (response, cache, error) => {
|
||||
Types:
|
||||
|
||||
- `number` -> the max time (in seconds) that the cache can be reused.
|
||||
- `boolean` -> `false` disables and `true` enables with infinite time.
|
||||
- `boolean` -> `false` disables and `true` enables with infinite time if no value is
|
||||
present on `stale-if-error` in Cache-Control.
|
||||
- `function` -> a predicate that can return `number` or `boolean` as described above.
|
||||
|
||||
## cache.override
|
||||
|
||||
3
src/cache/cache.ts
vendored
3
src/cache/cache.ts
vendored
@ -164,7 +164,8 @@ export type CacheProperties<R = unknown, D = unknown> = {
|
||||
* Types:
|
||||
*
|
||||
* - `number` -> the max time (in seconds) that the cache can be reused.
|
||||
* - `boolean` -> `false` disables and `true` enables with infinite time.
|
||||
* - `boolean` -> `false` disables and `true` enables with infinite time if no value is
|
||||
* present on `stale-if-error` in Cache-Control.
|
||||
* - `function` -> a predicate that can return `number` or `boolean` as described above.
|
||||
*
|
||||
* @default true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user