diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 15:04:51 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 15:04:51 -0500 |
commit | ea326d16d82d86f4fda14f83745a5a399824257d (patch) | |
tree | 708407dead63c0411ab0f0e62dab0837559ec67d /docs/user_guide | |
parent | 8eaa78848f4f71e687c56609d49302c03775bb2a (diff) | |
download | requests-cache-ea326d16d82d86f4fda14f83745a5a399824257d.tar.gz |
Add support for Cache-Control: max-stale and min-fresh
Diffstat (limited to 'docs/user_guide')
-rw-r--r-- | docs/user_guide/headers.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/user_guide/headers.md b/docs/user_guide/headers.md index 1d4cbcb..9681d64 100644 --- a/docs/user_guide/headers.md +++ b/docs/user_guide/headers.md @@ -48,6 +48,8 @@ The following headers are currently supported: **Request headers:** - `Cache-Control: max-age`: Used as the expiration time in seconds +- `Cache-Control: max-stale`: Accept responses that have been expired for up to this many seconds +- `Cache-Control: min-fresh`: Don't accept responses if they will expire within this many seconds - `Cache-Control: no-cache`: Revalidate with the server before using a cached response - `Cache-Control: no-store`: Skip reading from and writing to the cache - `Cache-Control: only-if-cached`: Only return results from the cache. If not cached, return a 504 |