summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2023-03-01 15:24:06 -0600
committerJordan Cook <jordan.cook.git@proton.me>2023-03-01 17:35:24 -0600
commit9728ee48c026866f18126cee68bb05fd6db2aab0 (patch)
tree41e73183786cef6ccffd993d8279f0c7de87664d /README.md
parent4ceda12dba80865b1efd2318daf040fe24a41ab3 (diff)
downloadrequests-cache-9728ee48c026866f18126cee68bb05fd6db2aab0.tar.gz
Fix typos
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index bec03fe..3271d64 100644
--- a/README.md
+++ b/README.md
@@ -93,7 +93,7 @@ use one of the two following strategies to balance cache freshness and performan
**Define exactly how long to keep responses:**
-Use the `expire_after` parameter to set a fixed expiration time for all responses.
+Use the `expire_after` parameter to set a fixed expiration time for all responses:
```python
from requests_cache import CachedSession
from datetime import timedelta
@@ -101,7 +101,7 @@ from datetime import timedelta
# Keep responses for 360 seconds
session = CachedSession('demo_cache', expire_after=360)
-# Use timedelta objects for more precise control
+# Or use timedelta objects to specify other units of time
session = CachedSession('demo_cache', expire_after=timedelta(hours=1))
```
See [Expiration](https://requests-cache.readthedocs.io/en/stable/user_guide/expiration.html) for
@@ -110,14 +110,14 @@ more features and settings.
**Use Cache-Control headers:**
Use the `cache_control` parameter to enable automatic expiration based on `Cache-Control` and other
-standard HTTP headers sent by the server.
+standard HTTP headers sent by the server:
```python
from requests_cache import CachedSession
session = CachedSession('demo_cache', cache_control=True)
```
-See [Headers](https://requests-cache.readthedocs.io/en/stable/user_guide/headers.html) for more
-details.
+See [Cache Headers](https://requests-cache.readthedocs.io/en/stable/user_guide/headers.html)
+for more details.
### Settings