Skip to main content
The Human Bit

Concept guide · How AI works

Why asking an AI the same thing twice can be cheaper.

A model re-reads your whole instruction every time you send it. If the start of the request is identical to last time, the provider can reuse the work it already did on that part instead of charging you to read it again. That reuse is called prompt caching.

Put the stable part first. Put the part that changes last.

What it actually is

Anthropic's documentation says caching a repeated prefix "significantly reduces processing time and costs for repetitive tasks or prompts with consistent elements." The order is the catch. The docs state that "the cache follows the hierarchy: tools, then system, then messages. Changes at each level invalidate that level and all subsequent levels."

Keep fixed instructions and reference material first, with changing information last. Editing the beginning can prevent reuse of the material that follows; the exact rules depend on the provider.

A normal example

You run a support assistant with a long fixed block: your tone, your refund policy and two example replies. The only thing that changes each time is the customer's message. Put the fixed block first and the customer's message last, and the fixed block is the same on every request, so it can be reused.

The proof: run the same prefix twice

On the API (the direct software connection to a model, the layer beneath a chat app) you can see this directly. A response splits the input it read into three counts: fresh input tokens, tokens written into the cache, and tokens read back from the cache. When caching is configured and the request meets its requirements, the first call can write the cache. A later matching request can then show cache-read tokens.

Inspect the cache-write and cache-read counts before concluding that a repeated request reused anything.

Try it now

Order a repeated task, then break it on purpose

0 of 3 done

Check: Use the API’s cache-read and cache-write counts to check whether reuse occurred. Savings depend on setup, minimum length and expiry rules; response speed alone is not proof.

Ask Bit opens with a first line written for you. Your notes are not put in the link; copy and paste them in.

The decision this gives you

Structure any reusable prompt so the stable material comes first, in the order tools, then system instructions, then the conversation, and the thing that changes each time comes last. That single ordering choice is most of the saving.

Common mistake

Putting today's date, a timestamp or the customer's changing message at the top of a reusable instruction. Changes near the front can prevent prefix reuse. Check the actual cache counts rather than assuming either a full saving or a full-price request.

The human bit

Caching changes what you pay, not whether the answer is right. The documentation is blunt about it: a cached prefix "still occupies the context window," and caching "changes what you pay for those tokens, not whether they count." A cheaper repeat still needs the same check as the first one.

Where this stops being exact

Cache lifetimes and rules differ by provider. Anthropic's cache has "a 5-minute lifetime" by default, with "a 1-hour cache duration at additional cost," and a minimum length before anything is cached at all, for example 1,024 tokens on Claude Sonnet 5. Most of this is a developer concern. In a normal chat app it happens invisibly, and the ordering habit is what carries over.

Official source

The cache lengths and lifetimes above were checked against Anthropic's documentation on 19 August 2026.

Use this in the product

The Human Bit Weekly

The useful changes, not every launch.

One short issue every Monday. What changed, what it means for your work, and the part that stays yours.

Step 1 of 2: your email address

Nothing is sent until you confirm on the next step. One email a week, unsubscribe any time.