Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't raise_for_status if status_code of response is in allowable_codes | David Dv Schmidt | 2023-02-18 | 1 | -1/+4 |
| | |||||
* | Update type hints to appease Pylance and stricter mypy settings | Jordan Cook | 2022-12-13 | 1 | -7/+7 |
| | |||||
* | Fix backwards-compatibility with deprecated remove_expired_responses | Jordan Cook | 2022-10-26 | 1 | -3/+3 |
| | |||||
* | Fix remove_expired_responses deprecation suggestion | Dave Gaeddert | 2022-10-26 | 1 | -1/+1 |
| | |||||
* | Explicitly disable pickling CachedSession objects | Jordan Cook | 2022-10-20 | 1 | -0/+6 |
| | |||||
* | Update docs | Jordan Cook | 2022-06-16 | 1 | -11/+2 |
| | |||||
* | Add support for Vary | Jordan Cook | 2022-06-16 | 1 | -1/+10 |
| | |||||
* | Consolidate BaseCache convenience methods into contains(), filter(), and ↵ | Jordan Cook | 2022-06-11 | 1 | -5/+2 |
| | | | | delete() | ||||
* | Split up remove_expired_reponses() into remove() and reset_expiration() ↵ | Jordan Cook | 2022-06-11 | 1 | -9/+4 |
| | | | | methods, with more granular arguments | ||||
* | use https for links | 谭九鼎 | 2022-05-09 | 1 | -1/+1 |
| | |||||
* | Implement Cache-Control: stale-while-revalidate | Jordan Cook | 2022-05-04 | 1 | -4/+15 |
| | |||||
* | Add 'older_than' argument to remove_expired_responses() | Jordan Cook | 2022-05-03 | 1 | -3/+7 |
| | |||||
* | Add always_revalidate session option | Jordan Cook | 2022-05-03 | 1 | -0/+4 |
| | |||||
* | Fix remove_expired_responses() with SQLite and expire_after=0 | Jordan Cook | 2022-04-30 | 1 | -2/+2 |
| | |||||
* | Add a BaseStorage.default_serializer attribute, to be more explicit about ↵ | Jordan Cook | 2022-04-22 | 1 | -2/+2 |
| | | | | which backends use something other than pickle by default | ||||
* | Add support for Cache-Control: stale-if-error | Jordan Cook | 2022-04-18 | 1 | -5/+5 |
| | |||||
* | Add positional-or-keyword args to request wrapper methods consistent with ↵ | Jordan Cook | 2022-04-18 | 1 | -8/+8 |
| | | | | requests API | ||||
* | Close database connections (if applicable) on CachedSession.__exit__ and close() | Jordan Cook | 2022-04-18 | 1 | -0/+5 |
| | |||||
* | Refactor utilities for parsing cache headers into CacheDirectives class | Jordan Cook | 2022-04-18 | 1 | -4/+5 |
| | |||||
* | Move all cache policy-related modules to separate 'policy' subpackage | Jordan Cook | 2022-04-17 | 1 | -4/+5 |
| | |||||
* | Move detailed backend docs from rst docstings to md files | Jordan Cook | 2022-04-16 | 1 | -15/+1 |
| | |||||
* | Add default list of ignored_parameters for most common authentication ↵ | Jordan Cook | 2022-04-10 | 1 | -2/+4 |
| | | | | params/headers | ||||
* | Move logic for translating kwargs to headers into ↵ | Jordan Cook | 2022-04-09 | 1 | -32/+15 |
| | | | | cache_actions.set_request_headers() | ||||
* | Refactor refresh/revalidate behavior | Jordan Cook | 2022-04-09 | 1 | -23/+38 |
| | | | | | | | | | | | | | | | * 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 | ||||
* | Add an intermediate wrapper class, OriginalResponse, to provide type hints ↵ | Jordan Cook | 2022-04-01 | 1 | -3/+28 |
| | | | | for extra attributes set on requests.Response objects | ||||
* | Move request-specific settings into RequestSettings class | Jordan Cook | 2022-04-01 | 1 | -0/+1 |
| | |||||
* | Move settings module to top level package, and leave 'models' subpackage for ↵ | Jordan Cook | 2022-04-01 | 1 | -5/+13 |
| | | | | only serialized data models | ||||
* | Add argument docs back to CachedSession.__init__ instead of generic ↵ | Jordan Cook | 2022-04-01 | 1 | -19/+61 |
| | | | | **kwargs; init settings in CachedSession instead of BaseCache | ||||
* | More code cleanup and comments | Jordan Cook | 2022-03-29 | 1 | -28/+17 |
| | |||||
* | Fix some regression bugs and broken tests | Jordan Cook | 2022-03-29 | 1 | -8/+6 |
| | |||||
* | Split datetime-related utility functions into a separate module | Jordan Cook | 2022-03-29 | 1 | -7/+12 |
| | |||||
* | Refactor request-level settings into separate RequestSettings class | Jordan Cook | 2022-03-29 | 1 | -82/+62 |
| | |||||
* | Refactor session-level settings into separate CacheSettings class | Jordan Cook | 2022-03-29 | 1 | -75/+29 |
| | |||||
* | Move more cache policy logic to CacheActions | Jordan Cook | 2022-03-29 | 1 | -14/+3 |
| | |||||
* | Add support for Cache-Control: only-if-cached and corresponding options for ↵ | Jordan Cook | 2022-03-11 | 1 | -4/+23 |
| | | | | request() and send() | ||||
* | Add separate revalidate ('soft refresh') option, support revalidation for ↵ | Jordan Cook | 2022-03-11 | 1 | -12/+20 |
| | | | | no-cache and must-revalidate, and related refactoring | ||||
* | Add refresh option to CachedSession.request() and send() | Jordan Cook | 2022-03-11 | 1 | -6/+18 |
| | |||||
* | Fix support for `params`, `data`, and `json` as positional arguments to ↵ | Jordan Cook | 2022-02-13 | 1 | -4/+4 |
| | | | | `CachedSession.request()` | ||||
* | Format using a more typical line length of 100 | Jordan Cook | 2022-01-01 | 1 | -3/+13 |
| | |||||
* | Move 304 handling to separate method | Jordan Cook | 2021-12-02 | 1 | -24/+25 |
| | |||||
* | Update CachedResponse headers with 304 response headers (RFC7234) | Manuel Eggimann | 2021-11-30 | 1 | -2/+8 |
| | |||||
* | Update cache entry expiration date in case of 304 Not Modified | Manuel Eggimann | 2021-11-29 | 1 | -1/+6 |
| | |||||
* | Add support for BaseCache keyword arguments passed along with a backend instance | Jordan Cook | 2021-11-13 | 1 | -1/+0 |
| | |||||
* | Move misc minor utils to a separate module | Jordan Cook | 2021-10-27 | 1 | -1/+1 |
| | |||||
* | Fix behavior for cache_control=True with expire_after | Jordan Cook | 2021-10-10 | 1 | -20/+9 |
| | |||||
* | Update changelog and some docstrings | Jordan Cook | 2021-09-20 | 1 | -6/+12 |
| | |||||
* | Reorganize & improve request normalization functions: | Jordan Cook | 2021-09-20 | 1 | -4/+4 |
| | | | | | | | | | | | | * Handle all normalization in `cache_keys` module, get rid of `normalize_dict()` function used in `CachedSession` * Reorganize `cache_keys` helper functions into the following: * `normalize_request()` * `normalize_url()` * `normalize_headers()` * `normalize_params()` * `normalize_body()` * `normalize_json_body()` * `redact_response()` | ||||
* | Support expire_after param for CachedSession.send() | Jordan Cook | 2021-09-18 | 1 | -2/+4 |
| | |||||
* | Make per-request expiration thread-safe by passing via request headers ↵ | Jordan Cook | 2021-09-18 | 1 | -17/+11 |
| | | | | instead of session attribute, and use Cache-Control request headers by default | ||||
* | Fix incorrect debug message for skipping cache write | Jordan Cook | 2021-09-15 | 1 | -1/+2 |
| |