3 releases (breaking)
0.3.0 | Jun 14, 2023 |
---|---|
0.2.0 | Feb 19, 2019 |
0.1.0 | Feb 9, 2018 |
#372 in HTTP client
60KB
1K
SLoC
static_http_cache
, a local disk cache for static HTTP resources
TODO
- proper error reporting
- record usage counts and dates for entries in the cache, so we can automatically clean them up.
- make sure each public type's interface is defined by a trait.
Cache::get()
needs a callback to report download progress.- if
Cache::get()
updates the locally cached data, it should delete the file containing the stale data. - Add support for other caching-relevant headers, like Expires or Cache-Control.
- Support "freshness", so we can sometimes answer from the cache without having to talk to the remote server at all.
- Add support for limiting cache size, so we automatically remove old data if the cache gets too big.
Dependencies
~5–20MB
~235K SLoC