| 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 | -9/+34 |
| | | |||||
| * | Raise an error for invalid expiration string values (except for headers ↵ | Jordan Cook | 2023-02-18 | 1 | -0/+15 |
| | | | | | containing httpdates) | ||||
| * | Add tests for pypy3.9 | Jordan Cook | 2022-12-30 | 1 | -3/+6 |
| | | |||||
| * | 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 | 1 | -2/+3 |
| | | | | | other methods besides just get_responses() | ||||
| * | 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 | 1 | -20/+19 |
| | | | | | has_url() and delete_url() | ||||
| * | Silence DeprecationWarnings during tests for deprecated methods | Jordan Cook | 2022-09-30 | 1 | -1/+2 |
| | | |||||
| * | Match whether ignored_parameters are present in a request (without matching ↵ | Jordan Cook | 2022-09-29 | 1 | -9/+24 |
| | | | | | content) | ||||
| * | 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 |
| | | |||||
| * | Update tests and docs | Jordan Cook | 2022-06-11 | 1 | -15/+10 |
| | | |||||
| * | Split up remove_expired_reponses() into remove() and reset_expiration() ↵ | Jordan Cook | 2022-06-11 | 1 | -127/+5 |
| | | | | | methods, with more granular arguments | ||||
| * | Implement Cache-Control: stale-while-revalidate | Jordan Cook | 2022-05-04 | 1 | -35/+97 |
| | | |||||
| * | 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 | 1 | -4/+6 |
| | | |||||
| * | Add misc missing test coverage | Jordan Cook | 2022-04-20 | 1 | -1/+9 |
| | | |||||
| * | Add support for Cache-Control: stale-if-error | Jordan Cook | 2022-04-18 | 1 | -2/+19 |
| | | |||||
| * | Move all cache policy-related modules to separate 'policy' subpackage | Jordan Cook | 2022-04-17 | 1 | -1/+1 |
| | | |||||
| * | Add serializer name to cache key to avoid errors due to switching serializers | Jordan Cook | 2022-04-15 | 1 | -8/+7 |
| | | |||||
| * | Add indexed datetime column to SQLite backend for faster eviction | Jordan Cook | 2022-04-10 | 1 | -8/+11 |
| | | |||||
| * | 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 | 1 | -6/+46 |
| | | |||||
| * | Move logic for translating kwargs to headers into ↵ | Jordan Cook | 2022-04-09 | 1 | -8/+12 |
| | | | | | cache_actions.set_request_headers() | ||||
| * | Refactor refresh/revalidate behavior | Jordan Cook | 2022-04-09 | 1 | -37/+55 |
| | | | | | | | | | | | | | | | | * 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 | -2/+2 |
| | | | | | for extra attributes set on requests.Response objects | ||||
| * | Remove some redundant, undocumented means of passing ↵ | Jordan Cook | 2022-04-01 | 1 | -20/+0 |
| | | | | | CachedSession/BaseBackend arguments | ||||
| * | Fix 504 behavior with stale-if-error and only-if-cached | Jordan Cook | 2022-04-01 | 1 | -2/+3 |
| | | |||||
| * | Fix some regression bugs and broken tests | Jordan Cook | 2022-03-29 | 1 | -35/+37 |
| | | |||||
| * | Refactor request-level settings into separate RequestSettings class | Jordan Cook | 2022-03-29 | 1 | -20/+20 |
| | | |||||
| * | Add support for Cache-Control: only-if-cached and corresponding options for ↵ | Jordan Cook | 2022-03-11 | 1 | -24/+68 |
| | | | | | request() and send() | ||||
| * | Add more unit test coverage for new revalidation behavior | Jordan Cook | 2022-03-11 | 1 | -1/+78 |
| | | |||||
| * | Reorganize tests in test_session module | Jordan Cook | 2022-03-11 | 1 | -248/+124 |
| | | |||||
| * | Reword inaccurate usage of the term 'revalidate' | Jordan Cook | 2022-03-11 | 1 | -2/+2 |
| | | |||||
| * | Fix cache path expansion | Andrew Stone | 2022-02-17 | 1 | -0/+6 |
| | | |||||
| * | Use only integers for expire_after values in tests and docs | Jordan Cook | 2022-02-15 | 1 | -10/+10 |
| | | |||||
| * | Fix disabling expiration for a single request with ↵ | Jordan Cook | 2022-02-15 | 1 | -2/+11 |
| | | | | | `CachedSession.request(..., expire_after=-1)` | ||||
| * | Fix support for `params`, `data`, and `json` as positional arguments to ↵ | Jordan Cook | 2022-02-13 | 1 | -0/+6 |
| | | | | | `CachedSession.request()` | ||||
| * | Format using a more typical line length of 100 | Jordan Cook | 2022-01-01 | 1 | -4/+16 |
| | | |||||
| * | Add support for BaseCache keyword arguments passed along with a backend instance | Jordan Cook | 2021-11-13 | 1 | -2/+17 |
| | | |||||
| * | Move misc minor utils to a separate module | Jordan Cook | 2021-10-27 | 1 | -7/+2 |
| | | |||||
| * | Fix duplicate cache read (contains + getitem) | Jordan Cook | 2021-10-23 | 1 | -1/+1 |
| | | |||||
| * | Reorganize & improve request normalization functions: | Jordan Cook | 2021-09-20 | 1 | -18/+53 |
| | | | | | | | | | | | | | * 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 | -0/+16 |
| | | |||||
| * | Use only integers for expire_after values in seconds, since this is what ↵ | Jordan Cook | 2021-09-18 | 1 | -11/+11 |
| | | | | | Cache-Control: max-age requires | ||||
| * | Redact ingored_parameters from CachedResponse.url | Jordan Cook | 2021-09-15 | 1 | -5/+23 |
| | | |||||
| * | Alias/rename old_data_on_error to stale_if_error for consistency with ↵ | Jordan Cook | 2021-09-06 | 1 | -8/+14 |
| | | | | | Cache-Control: stale-if-error (backwards-compatibile) | ||||
