mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-10-17 18:27:52 +00:00
A cached image is now one R2 lookup instead of a KV lookup followed by an R2 one, using the type and upload time R2 already stores with it. A failed search leaves an empty R2 object marked err (bad.webp for 24h) instead of a KV entry. This also stops the KV write per new image, which reached 46% of the free daily limit. KV now only holds access tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>