Skip to content

Commit

Permalink
Version 0.0.29 (#244)
Browse files Browse the repository at this point in the history
* Version 0.0.29

* changelog

---------

Co-authored-by: Karen Petrosyan <k.petrosyan@actum.cx>
  • Loading branch information
karpetrosyan and Karen Petrosyan authored Jun 23, 2024
1 parent 89f056c commit a5b8858
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.0.29 (23th June, 2024)

- Documentation hotfix. (#244)

## 0.0.28 (23th June, 2024)

- Add `revalidated` response extension. (#242)
Expand Down
5 changes: 3 additions & 2 deletions docs/advanced/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ True

### revalidated

Every response will have a revalidated extension that indicates whether the response has been revalidated or not.
Every response will have a `revalidated` extension that indicates whether the response has been revalidated or not.

!!! note
Note that a response could have `revalidated` set to `True` even when `from_cache` is set to `False`. This occurs when the cached entry has been updated and a new entry is downloaded during revalidation.

```python
>>> import hishel
>>> client = hishel.CacheClient()
>>> response = client.get("https://www.example.com/endpoint_that_is_fresh")
Expand All @@ -75,7 +76,7 @@ False
>>> response = client.get("https://www.example.com/endpoint_that_is_stale")
>>> response.extensions["revalidated"]
True

```

### cache_metadata

Expand Down
2 changes: 1 addition & 1 deletion hishel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def install_cache() -> None: # pragma: no cover
httpx.Client = CacheClient # type: ignore


__version__ = "0.0.28"
__version__ = "0.0.29"

0 comments on commit a5b8858

Please sign in to comment.