mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
docs: cachePredicate status codes follows RFC 7231 (#547)
This commit is contained in:
parent
2d2696dade
commit
e189b72a6d
@ -166,7 +166,7 @@ exceptions to the method rule.
|
||||
|
||||
- Type: `CachePredicate<R, D>`
|
||||
- Default:
|
||||
`{ statusCheck: (status) => [200, 203, 300, 301, 302, 404, 405, 410, 414, 501].includes(status) }`
|
||||
`{ statusCheck: (status) => [200, 203, 300, 301, 302, 404, 405, 410, 414, 501].includes(status) }` _(These default status codes follows RFC 7231)_
|
||||
|
||||
An object or function that will be tested against the response to indicate if it can be
|
||||
cached.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user