Asked about Prompt caching

What breaks prompt caching?

An answer that works

Any change in the prefix, since matching runs from the start and stops at the first difference. Timestamps, request ids, a user name near the top, or JSON serialised with unstable key order all invalidate it silently.

Reading an answer is not being able to give one. The section that teaches this is Prompt caching, 5 hours of Prompt caching.

Learn this properly