|
Haio 0.2.X
Homebrew Asset IO/CDN
|

keeping the answer, so the fetch and the conversion behind it happen once.
the md5 of the bucket, the path and the query, in the order written. the query is not sorted: it will spell a pipeline once filters chain, and a sorted key would serve one picture when another was asked for. the method is left out, so a HEAD finds what a GET stored.
| url | kept in | bounded by |
|---|---|---|
| absent | this process | what it holds |
| file://dir | one file per key | what the files take |
| redis://host | a shared redis | an index haio keeps |
a redis that cannot be reached reads as a miss: losing the cache costs latency and nothing else.
deduplication is not part of caching. with no [cache] nothing is kept, and a burst on one key still reaches the producer once.