/oss · 1 merged

requests-cache/requests-cache

A Python library that saves web responses so repeat requests are answered from a local cache.

the project on GitHub (opens in a new tab)
  1. 17 Nov 2026

    Cached pages keep their accented letters

    What was broken
    With one cache setting on, pages that did not name their text encoding were saved wrongly, so accented letters came back garbled. Pages in other encodings came back changed too.
    What I changed
    Text is now saved as text only when it can be turned back into the exact original bytes. Anything else is kept as raw bytes.
    Why it matters
    A page read from the cache matches the page the server sent.

    see the code, #1218 (opens in a new tab)

← every project