docs: cachePredicate status codes follows RFC 7231 (#547)

This commit is contained in:
Subhradeep Nag 2023-06-07 18:18:03 +05:30 committed by GitHub
parent 2d2696dade
commit e189b72a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.