Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Refactor refresh/revalidate behavior | Jordan Cook | 2022-04-09 | 1 | -4/+6 | |
| | | | | | | | | | | | | | | | * Rename two (unreleased) options to be more consistent with browser behavior: * `revalidate()` -> `refresh()` * `refresh()` -> `force_refresh()` * Revert `RequestSettings` changes and use just kwargs instead for per-request settings * Add full type hints back to extra kwargs for `CachedSession.send()` * Fix a bug in which some kwargs specific to requests-cache could get passed to `requests.Session.send()` * Use 'must-revalidate' as a temporary header for a user-requested refresh * Refer to expiration value of 0 more accurately as 'expire immediately' rather than 'do not cache' * It may potentially be saved and used with revalidation, depending on other headers/settings * `DO_NOT_CACHE` now has a different value but same effect * Refer to constants in docs instead of 0, -1, etc. * Log more details about post-read and pre-cache checks | |||||
* | Update tests, changelog, and contributors | Jordan Cook | 2022-04-06 | 1 | -0/+3 | |
| | ||||||
* | Add an intermediate wrapper class, OriginalResponse, to provide type hints ↵ | Jordan Cook | 2022-04-01 | 1 | -0/+8 | |
| | | | | for extra attributes set on requests.Response objects | |||||
* | Update docs, doc dependencies, changelog, and contributors | Jordan Cook | 2022-04-01 | 1 | -0/+13 | |
| | | | | | Also: Restrict redis-py to <4.2, which breaks parameter forwarding on python 3.7 and 3.8 | |||||
* | Swap out appdirs for platformdirs | Jordan Cook | 2022-03-14 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | * platformdirs is a more actively maintained fork of appdirs. * Also relax requirements a bit for attrs and urllib (minimum instead of caret constraint) Dependabot update: Bump responses from 0.16.0 to 0.19.0 Bumps [responses](https://github.com/getsentry/responses) from 0.16.0 to 0.19.0. - [Release notes](https://github.com/getsentry/responses/releases) - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES) - [Commits](https://github.com/getsentry/responses/compare/0.16.0...0.19.0) --- updated-dependencies: - dependency-name: responses dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> | |||||
* | Add support for Cache-Control: only-if-cached and corresponding options for ↵ | Jordan Cook | 2022-03-11 | 1 | -2/+4 | |
| | | | | request() and send() | |||||
* | Update changelog, docs, and bump version | Jordan Cook | 2022-03-11 | 1 | -6/+16 | |
| | ||||||
* | Update dev dependencies and changelog | Jordan Cook | 2022-02-22 | 1 | -1/+7 | |
| | ||||||
* | Update changelog and contributors | Jordan Cook | 2022-02-22 | 1 | -0/+1 | |
| | ||||||
* | Skip normalizing a JSON request body if it's excessively large (>10MB) due ↵ | Jordan Cook | 2022-02-22 | 1 | -0/+1 | |
| | | | | to performance impact | |||||
* | Fix request normalization for request body with a list as a JSON root | Jordan Cook | 2022-02-22 | 1 | -0/+1 | |
| | ||||||
* | Fix handling BSON serializer differences between pymongo's bson and ↵ | Jordan Cook | 2022-02-15 | 1 | -0/+3 | |
| | | | | standalone bson codec. | |||||
* | Fix serialization in filesystem backend with binary content that is also ↵ | Jordan Cook | 2022-02-15 | 1 | -3/+4 | |
| | | | | valid UTF-8 | |||||
* | Update changelog and contributors | Jordan Cook | 2022-02-15 | 1 | -3/+4 | |
| | ||||||
* | Update changelog, contributors, and dependencies | Jordan Cook | 2022-02-13 | 1 | -0/+4 | |
| | ||||||
* | Update changelog, bump dev dependencies, and bump version | Jordan Cook | 2022-01-29 | 1 | -1/+1 | |
| | ||||||
* | Update changelog and contributorsv0.9.1 | Jordan Cook | 2022-01-15 | 1 | -1/+1 | |
| | ||||||
* | Switch to a different method of resolving ForwardRefs during deserialization ↵ | Jordan Cook | 2022-01-15 | 1 | -1/+2 | |
| | | | | for python 3.10.2 compatibility | |||||
* | Update changelog and contributors | Jordan Cook | 2022-01-14 | 1 | -0/+1 | |
| | ||||||
* | Update changelog and bump version | Jordan Cook | 2022-01-10 | 1 | -0/+3 | |
| | ||||||
* | Minor changelog formatting | Jordan Cook | 2022-01-01 | 1 | -1/+1 | |
| | ||||||
* | Update changelog | Jordan Cook | 2022-01-01 | 1 | -1/+1 | |
| | ||||||
* | Fix black and type checking issues, and update changelog | Jordan Cook | 2022-01-01 | 1 | -0/+1 | |
| | ||||||
* | Update changelog | Jordan Cook | 2021-12-02 | 1 | -0/+1 | |
| | ||||||
* | Update dev dependencies, actions, changelog, and contributors | Jordan Cook | 2021-12-01 | 1 | -0/+1 | |
| | ||||||
* | Add back overrides for requests.Response.__getstate__ and __setstate__ so ↵ | Jordan Cook | 2021-11-24 | 1 | -0/+1 | |
| | | | | plain pickle will work as a serializer | |||||
* | Add support for BaseCache keyword arguments passed along with a backend instance | Jordan Cook | 2021-11-13 | 1 | -0/+1 | |
| | ||||||
* | Add support for Cache-Control: immutable | Jordan Cook | 2021-10-23 | 1 | -1/+2 | |
| | ||||||
* | Bump unreleased changes into a minor release (0.9) and format changelog | Jordan Cook | 2021-10-23 | 1 | -8/+19 | |
| | ||||||
* | Fix duplicate cache read (contains + getitem) | Jordan Cook | 2021-10-23 | 1 | -0/+2 | |
| | ||||||
* | Support immediate expiration + revalidation for Cache-Control: max-age=0 and ↵ | Jordan Cook | 2021-10-10 | 1 | -0/+2 | |
| | | | | Expires: 0 | |||||
* | Add better error message if parent path exists but isn't a directory | Jordan Cook | 2021-10-10 | 1 | -0/+1 | |
| | ||||||
* | Use correct SPDX license short identifier in package metadata | Jordan Cook | 2021-10-04 | 1 | -0/+1 | |
| | | | | Fixes #427 | |||||
* | Update changelog and some docstrings | Jordan Cook | 2021-09-20 | 1 | -0/+2 | |
| | ||||||
* | Update changelog | Jordan Cook | 2021-09-18 | 1 | -0/+5 | |
| | ||||||
* | Update changelogv0.8.1 | Jordan Cook | 2021-09-15 | 1 | -2/+5 | |
| | ||||||
* | Redact ingored_parameters from CachedResponse.url | Jordan Cook | 2021-09-15 | 1 | -0/+5 | |
| | ||||||
* | Add note to Troubleshooting section about deprecated imports | Jordan Cook | 2021-09-07 | 1 | -1/+1 | |
| | ||||||
* | Update changelog and Readme linksv0.8.0 | Jordan Cook | 2021-09-07 | 1 | -1/+1 | |
| | ||||||
* | Alias/rename old_data_on_error to stale_if_error for consistency with ↵ | Jordan Cook | 2021-09-06 | 1 | -11/+17 | |
| | | | | Cache-Control: stale-if-error (backwards-compatibile) | |||||
* | Use blake2 instead of sha256 for hashing request info | Jordan Cook | 2021-09-06 | 1 | -1/+3 | |
| | | | | | | | | | With an 8-byte digest for shorter cache keys. This is still plenty long enough to avoid hash collisions: `4e-15` for 100,000 items, `4e-7` chance for 1 billion items, etc. This makes it more convenient for manually inspecting cache items, especially for the filesystem backend, which uses cache keys as filenames. | |||||
* | Allow match_headers to optionally accept a list of specific headers to match | Jordan Cook | 2021-09-06 | 1 | -10/+7 | |
| | ||||||
* | Alias/rename 'include_get_headers' to 'match_headers' for clarity ↵ | Jordan Cook | 2021-09-06 | 1 | -1/+8 | |
| | | | | (backwards-compatibile) | |||||
* | Update and format changelog | Jordan Cook | 2021-09-05 | 1 | -52/+44 | |
| | ||||||
* | Expecting to release 0.8 by the end of September | Jordan Cook | 2021-08-30 | 1 | -1/+1 | |
| | ||||||
* | Revert renaming DynamoDB backend classes; a minor inconsistency is probably ↵ | Jordan Cook | 2021-08-30 | 1 | -4/+3 | |
| | | | | better than an unnecessary API change | |||||
* | Use pathlib.Path objects for all file paths in Filesystem and SQLite backends | Jordan Cook | 2021-08-29 | 1 | -23/+32 | |
| | ||||||
* | Minor edits for Readme and Related Projects | Jordan Cook | 2021-08-28 | 1 | -10/+7 | |
| | ||||||
* | Allow has_url(), delete_url(), and create_key() to optionally take ↵ | Jordan Cook | 2021-08-28 | 1 | -2/+5 | |
| | | | | requests.Request arguments | |||||
* | Enable conditional requests by default | Jordan Cook | 2021-08-26 | 1 | -1/+1 | |
| |