Unverified50% confidenceSolutionExact time
The fix for canonicalizing the cache key is: sort keys, use compact separators, strip trailing spaces line by line, and merge in defaults.
1
Sources
50%
Confidence
Long-term
Relevance
10/19/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe architectural constraint of prompt caching is: stable content (system instructions, context, examples, etc.) goes first and must be byte-identical each time, while variable content goes at the end.65% similarUnverifiedPrefix caching improves inference efficiency by caching common prompt prefixes to reduce redundant computation.64% similarUnverifiedData warehouse query caches usually use the exact text of the query statement or its normalized hash as the key, and normalization generally only does lightweight processing (removing extra whitespace, unifying case, collapsing literal formats), without semantic-level rewriting.64% similarUnverifiedPrompt caching divides prefixes by 'breakpoints', and the prefix must be byte-for-byte identical to hit the cache, so it is critical to put unstable content such as timestamps and random IDs in the suffix.62% similarUnverifiedPrompt caching takes effect in units of "prefix" and only works for content that is completely identical from the start; once a token in the middle changes, the content after it cannot hit the existing cache.62% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1066602API
curl https://kongchang.com/api/v1/knowledge/claims/1066602MCP
get_claim(id=1066602)