Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add compatibility with urllib3 2.0 | Jordan Cook | 2023-05-15 | 1 | -1/+0 |
| | |||||
* | Enable bugbear extension and fix warnings | Jordan Cook | 2023-05-08 | 3 | -9/+9 |
| | |||||
* | Don't normalize CachedResponse.url when redacting ignored params | Jordan Cook | 2023-04-02 | 1 | -2/+20 |
| | |||||
* | Use time-machine instead of sleep for timing-based tests | Jordan Cook | 2023-04-02 | 2 | -76/+111 |
| | |||||
* | Ignore Cache-Control: must-revalidate and no-cache when cache_control=False | Jordan Cook | 2023-03-24 | 1 | -7/+16 |
| | |||||
* | Allow regexes for URL expiration patterns | Simon Leiner | 2023-03-24 | 1 | -0/+4 |
| | | | | | This allows for more fine-grained control over URL patterns than globbing in the rare cases where that is needed. | ||||
* | Don't raise_for_status if status_code of response is in allowable_codes | David Dv Schmidt | 2023-02-18 | 1 | -9/+34 |
| | |||||
* | Raise an error for invalid expiration string values (except for headers ↵ | Jordan Cook | 2023-02-18 | 2 | -1/+18 |
| | | | | containing httpdates) | ||||
* | Add tests for pypy3.9 | Jordan Cook | 2022-12-30 | 1 | -3/+6 |
| | |||||
* | Make use of index with SQLiteCache.filter(expired=False) | Jordan Cook | 2022-10-28 | 1 | -12/+11 |
| | |||||
* | Omit invalid responses and set response.cache_key in SQLiteCache.sorted() | Jordan Cook | 2022-10-28 | 1 | -1/+1 |
| | |||||
* | Handle errors due to invalid responses in deserialize(), so it applies to ↵ | Jordan Cook | 2022-10-28 | 2 | -10/+23 |
| | | | | other methods besides just get_responses() | ||||
* | Handle using a converter that doesn't support the omit_if_default keyword ↵ | Jordan Cook | 2022-10-28 | 1 | -0/+13 |
| | | | | argument | ||||
* | Add BaseCache.has_key() back; this was intended to be deprecated, not yet ↵ | Jordan Cook | 2022-10-26 | 1 | -0/+8 |
| | | | | removed | ||||
* | Add support for header values as bytes | Jordan Cook | 2022-10-20 | 1 | -0/+1 |
| | |||||
* | Explicitly disable pickling CachedSession objects | Jordan Cook | 2022-10-20 | 1 | -0/+6 |
| | |||||
* | Add 'url' argument to BaseCache.contains() and delete() for similarity to ↵ | Jordan Cook | 2022-09-30 | 2 | -22/+38 |
| | | | | has_url() and delete_url() | ||||
* | Fix issue on Windows with occasional missing `CachedResponse.created_at` ↵ | Jordan Cook | 2022-09-30 | 1 | -2/+3 |
| | | | | timestamp | ||||
* | Silence DeprecationWarnings during tests for deprecated methods | Jordan Cook | 2022-09-30 | 3 | -26/+40 |
| | |||||
* | Add delete() function for patcher | Jordan Cook | 2022-09-29 | 1 | -4/+12 |
| | |||||
* | Match whether ignored_parameters are present in a request (without matching ↵ | Jordan Cook | 2022-09-29 | 2 | -10/+25 |
| | | | | content) | ||||
* | Add method to recreate cache keys | Jordan Cook | 2022-08-23 | 1 | -0/+40 |
| | |||||
* | Add support for duplicate request params | Jordan Cook | 2022-08-15 | 1 | -0/+19 |
| | |||||
* | Update only_if_cached to take precedence over refresh or other revalidation ↵ | Jordan Cook | 2022-07-30 | 1 | -0/+10 |
| | | | | conditions | ||||
* | Some additional logging and tests | Jordan Cook | 2022-06-16 | 1 | -0/+16 |
| | |||||
* | Add support for Vary | Jordan Cook | 2022-06-16 | 1 | -0/+80 |
| | |||||
* | Normalize ordering and whitespace for multi-value request headers | Jordan Cook | 2022-06-16 | 1 | -4/+13 |
| | |||||
* | Update tests and docs | Jordan Cook | 2022-06-11 | 3 | -144/+161 |
| | |||||
* | Split up remove_expired_reponses() into remove() and reset_expiration() ↵ | Jordan Cook | 2022-06-11 | 3 | -153/+178 |
| | | | | methods, with more granular arguments | ||||
* | Add a base model repr that excludes default values even if rich isn't installed | Jordan Cook | 2022-05-30 | 1 | -0/+6 |
| | |||||
* | Add Placeholder.loads() (needed in some scenerios with missing dependencies ↵ | Jordan Cook | 2022-05-30 | 1 | -0/+2 |
| | | | | when using PyInstaller) | ||||
* | Add CachedRequest.path_url property | Jordan Cook | 2022-05-18 | 1 | -1/+1 |
| | |||||
* | Implement Cache-Control: stale-while-revalidate | Jordan Cook | 2022-05-04 | 2 | -75/+173 |
| | |||||
* | Add 'older_than' argument to remove_expired_responses() | Jordan Cook | 2022-05-03 | 1 | -1/+34 |
| | |||||
* | Add always_revalidate session option | Jordan Cook | 2022-05-03 | 1 | -3/+23 |
| | |||||
* | Remove row count from BaseCache.__str__ | Jordan Cook | 2022-04-22 | 1 | -6/+3 |
| | |||||
* | For SQLite expires column, use time.time() instead of datetime.timestamp() | Jordan Cook | 2022-04-22 | 1 | -5/+5 |
| | |||||
* | Merge *PickleDict storage classes into parent classes | Jordan Cook | 2022-04-22 | 2 | -7/+9 |
| | |||||
* | Skip tests for optional serializer dependencies if not installed | Jordan Cook | 2022-04-22 | 1 | -2/+7 |
| | |||||
* | Add misc missing test coverage | Jordan Cook | 2022-04-20 | 5 | -1/+41 |
| | |||||
* | Improve output for all models when printed or logged with rich | Jordan Cook | 2022-04-19 | 1 | -0/+26 |
| | |||||
* | Add support for Cache-Control: stale-if-error | Jordan Cook | 2022-04-18 | 2 | -8/+48 |
| | |||||
* | Add support for Cache-Control: max-stale and min-fresh | Jordan Cook | 2022-04-18 | 1 | -0/+32 |
| | |||||
* | Move all cache policy-related modules to separate 'policy' subpackage | Jordan Cook | 2022-04-17 | 3 | -5/+5 |
| | |||||
* | Add serializer name to cache key to avoid errors due to switching serializers | Jordan Cook | 2022-04-15 | 2 | -9/+8 |
| | |||||
* | Add indexed datetime column to SQLite backend for faster eviction | Jordan Cook | 2022-04-10 | 2 | -16/+13 |
| | |||||
* | Add default list of ignored_parameters for most common authentication ↵ | Jordan Cook | 2022-04-10 | 1 | -13/+36 |
| | | | | params/headers | ||||
* | Also skip cache read for requests excluded by allowable_methods | Jordan Cook | 2022-04-09 | 3 | -27/+76 |
| | |||||
* | Move logic for translating kwargs to headers into ↵ | Jordan Cook | 2022-04-09 | 2 | -15/+14 |
| | | | | cache_actions.set_request_headers() | ||||
* | Refactor refresh/revalidate behavior | Jordan Cook | 2022-04-09 | 3 | -70/+83 |
| | | | | | | | | | | | | | | | * 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 |