Fix private-cache segment reuse across root params (#98810)
Private caches only tracked root-param reads in development. Production runtime prefetches omitted these dependencies from their vary params metadata, allowing the client to reuse content across different root-param values. This extends #98674 to `"use cache: private"`. Private caches now collect root-param reads in production and inherit dependencies from nested public and private caches. The existing response-level propagation can then record those dependencies when it consumes the cache entry. Regression tests cover direct reads, public caches inside private caches, and private caches inside private caches. Each case prefetches English and German content, then verifies that navigation uses the German result without another request.
Showing
Please
register
or
sign in
to comment