mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
730db756bc
Part of a stack of changes to convert all RSC requests to a single unified response type, NavigationFlightResponse. This step converts static route tree prefetches (i.e. `/_tree` requests). The old format could omit a dynamic param's value from the response so that a statically served response is cacheable across param values; the client parses the value from the URL instead. That behavior moves into the shared decoder, where it's now permitted for any transport response. A cached /_tree response from an older build decodes without a build id and falls back to an MPA navigation, like any other cross-build response. The staleTime field of the old format is not carried over because the client never read it.