Next.js Daily

Next.js Daily: Caching Improvements and React Upgrade

The Next.js team merged 10 pull requests focusing on fetch caching, session-dependent tasks, and error handling improvements. A React upgrade to version d5736f09-20260507 was also included.

Duration: PT1M54S

https://podlog.io/listen/next-js-daily-cb14d90b/episode/next-js-daily-caching-improvements-and-react-upgrade-1ac4b699

Transcript

Good morning. This is Next.js Daily for Tuesday, May 14th, 2026.

Luke Sandberg merged two significant caching improvements. The first simplifies session-dependent tasks by converting runtime flags to compile-time attributes, enabling better performance through eager aggregation. The second implements proper HTTP Cache-Control header support for fetch operations, introducing TTL-based invalidation so cached responses respect server-specified expiration times.

Hendrik Liebau contributed several fixes for cache-related errors and routing issues. He improved error surfacing for invalid dynamic usage in development by routing errors through Flight instead of the Pages Router error page. He also enhanced nested cache error reporting by showing the inner cache call site as the error cause, making debugging easier when dynamic cache life propagates through dependencies. Additionally, he fixed a router.query corruption bug affecting Pages Router apps using basePath, rewrites, middleware, and catch-all routes together.

The Vercel Release Bot upgraded React from dd453071-20260506 to d5736f09-20260507, bringing upstream improvements across 62 files.

Janka Uryga made two maintenance fixes: renumbering non-sequential error codes in errors.json and resolving a GNU xargs warning about incompatible command-line options.

The team also addressed test infrastructure, with Hendrik patching playwright-core to fix hanging response promises and re-enabling previously flaky cached-navigations tests.

What's next: These caching improvements should provide more predictable behavior for fetch operations and better debugging experience for cache-related errors. The session-dependent task refactoring may enable further performance optimizations in future releases.

That's your Next.js update for today. We'll be back tomorrow with more developments.