Unverified50% confidenceFactExact time
Prompt caching matches an identical token sequence backward from the beginning of the prompt, and the matched portion receives the discount; once the tokens diverge, subsequent content is billed at full price.
1
Sources
50%
Confidence
Long-term
Relevance
10/18/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedPrompt caching has a strict prefix-matching requirement: once the content or order of the tool list changes, the cache immediately becomes invalid, and all content after the prefix must be recomputed at the original price.70% similarUnverifiedPrompt caching uses a strict prefix-matching strategy; once a mismatch occurs at a given position, all cached content after that position is invalidated.69% similarUnverifiedAdding ^ at the beginning of a pattern in re.search() is equivalent to prefix matching, while adding both ^ and $ at the beginning and end is equivalent to a full match.67% similarUnverifiedCache matching typically requires an exact prefix match (including the token sequence), which is why developers need to place stable content at the front of the prompt and keep the order unchanged.66% similarUnverifiedPrefix matching requires that only a contiguous sequence starting from the first token that is completely identical can hit the cache.66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1060532API
curl https://kongchang.com/api/v1/knowledge/claims/1060532MCP
get_claim(id=1060532)