Your Prompt Cache Reads Zero and Your Prefix Is Fine
Every guide to Anthropic prompt caching tells you the same debugging step, and it is a good one. If cache_read_input_tokens comes back zero across repeated requests with an identical prefix, something in that prefix is changing between calls. A timestamp in the system prompt. A UUID. A dict that serializes in a…