What does Prefix caching mean in inference serving?
Prefix caching preserves KV cache blocks for prompt prefixes that recur across requests. A matching request can reuse the cached prefix and compute only the uncached suffix. The server identifies reusable prefixes, stores their cache blocks, and checks later requests for exact matches. Gains depend on prompt repetition, cache capacity, eviction behavior, and the cost of lookup.