mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-03-17 03:01:01 +00:00
Refactor: Update README to reflect store-as-is approach
This commit is contained in:
13
README.md
13
README.md
@@ -17,8 +17,8 @@ That's it. The image is searched, cached, and served.
|
||||
## How It Works
|
||||
|
||||
1. A request hits `direct-img.link/<query>`
|
||||
2. If cached (within 30 days) → serves the image instantly from edge
|
||||
3. If not cached → searches via Brave Image Search API → compresses to WebP → caches in R2 → serves
|
||||
2. If cached (within 30 days) → serves the image instantly from R2
|
||||
3. If not cached → searches via Brave Image Search API → stores in R2 → serves
|
||||
|
||||
## URL Format
|
||||
|
||||
@@ -63,6 +63,7 @@ as the image URL. Use + to separate words. Example:  → **Value:** `{"t":1719000000}` — **TTL:** 30 days
|
||||
**Key:** normalized query (lowercase, trimmed) → **Value:** `{"t":1719000000,"ct":"image/jpeg"}` — **TTL:** 30 days
|
||||
|
||||
### KV: `DIRECT_IMG_RATE`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user