Series · 2 notes
Ask Infinary, the site chat
The chat on this site: moving it to Claude, caching its prompt, and keeping a public box that calls a paid model from being abused.
- Part 1 Deep dive Oct 20, 2026
Prompt caching on the site chat: turn two read 5,454 tokens from cache
We moved Ask Infinary to Claude Haiku 5.5 and laid the request out so the long, shared part is cached. The second turn of the first live chat read 5,454 tokens from cache and sent 110 fresh ones.
- Part 2 Deep dive Oct 20, 2026
The rate limiter that never fired
Our site chat got a limit of 10 requests a minute per address, and on the live site it never refused one. Cloudflare's rate-limiting binding counts per machine, so we moved the count into one Durable Object per client.