mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
4be2ee7443
## Summary Cache Components routes support per-segment prefetching, but dynamic Flight responses only advertised this capability during static generation. This could cause a subsequent `router.prefetch()` call to fall back to loading-boundary prefetching and issue an unnecessary request. In other words, this logic was correctly determined [here](https://github.com/vercel/next.js/blob/0db9e5f994ddf144bef72640d5be9bb17d77fe30/packages/next/src/server/app-render/app-render.tsx#L2204) but not in the initial payload. ## Verification - `pnpm test-start-turbo test/e2e/app-dir/segment-cache/basic/segment-cache-basic.test.ts` - `pnpm test-start-webpack test/e2e/app-dir/segment-cache/basic/segment-cache-basic.test.ts`