Gemini-3.8-flash: implicit cache no longer shares an identical prefix across requests (worked until Oct 27, 2026)

Since about 20:00 on Oct 27, 2026 (UTC+2), implicit caching on gemini-3.8-flash returns cachedContentTokenCount = 0 for a request that shares a large identical prefix with an earlier, different request. Before that, the same traffic got 70–95% cached.

Production (agent loop, ~330 runs/day, 56K-token fixed prefix):

  • Request #2 of each run: cached share was 77% before Oct 27 ~20:00 and 0% after. That is every run on Oct 28 and 20 of 20 on Oct 29–31.
  • Requests #3 onward: 91% before, 94% after, unchanged.
  • Our prompt and tool definitions are byte-identical between runs.
  • Cost per run rose by about 35%.

Test on Oct 31 (synthetic text, ~42.6K tokens, same system instruction, different user message, 5 s apart):

Request prompt tokens cached
First request 42,636 0
Same system instruction, different user message 42,636 0 (every run)
Extends the first request 42,645 40,581 in some runs, 0 in others

Moving all per-request data into the user message (so the system instruction is byte-identical) did not change the second result. gemini-3.6-flash behaves the same.

Questions:

  1. Did implicit caching for 3.8 Flash change around Oct 27 so it matches only the previous request of the same conversation?
  2. Is that intended? The docs describe it only for Gemini 4 and newer.
  3. Is there a supported way to keep a large fixed prefix cached across independent requests in an agent loop? Explicit caching covers the prefix but not the growing conversation.

Hello @Mohammed_Endisha ,
Thank you for sharing the detailed comparison tests. We have reproduced this behavior. We are looking into it.

Hello @Mahesh_Sutar ,

Any updates on this?

Hi @Karthik_Hebbar ,
We are still working on a fix for this issue.