Next.js: Caching Improvements and Router Fixes

The Next.js team merged 10 pull requests focused on session-dependent task optimization, HTTP cache control implementation, and router query corruption fixes. A React upgrade and test stability improvements were also included.

Duration: PT2M6S

Episode overview

This episode is a short developer briefing from Next.js.

It explains recent repository work in plain language.

  • Show: Next.js
  • Published: 2026-05-14T10:02:07Z
  • Audio duration: PT2M6S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning, this is your Next.js developer briefing for May 14th, 2026.

Luke Sandberg merged a significant refactor to simplify session-dependent tasks, converting runtime flags to compile-time attributes for better performance. This enables eager aggregation number selection and removes the need for runtime session dependency marking.

Sandberg also merged improvements to fetch behavior, implementing proper HTTP Cache-Control header support with TTL-based invalidation. The new system uses a two-task pattern where fetch_inner performs HTTP requests while fetch handles session-dependent caching with proper timeout handling.

Hendrik Liebau fixed a router query corruption bug affecting Pages Router apps that combine basePath, rewrites, middleware, and catch-all routes. The issue caused router.query to contain internal URL segments instead of actual route parameters.

Liebau also improved error handling for use cache components, surfacing invalid dynamic usage errors through Flight in development instead of falling back to the Pages Router error page. A follow-up PR enhanced nested cache error reporting by showing the inner cache call site as the error cause.

The Vercel Release Bot…

Nearby episodes from Next.js

  1. Turbopack CSS Optimization and Testing Improvements
  2. Weekly Recap - Developer Experience & Performance Optimization
  3. Developer Experience Overhaul
  4. Server Action Fixes and Instant Insights Improvements
  5. New CLI Tool and Backend Improvements
  6. Developer Experience Overhaul and Test Infrastructure Migration
  7. Turbopack Performance and Telemetry Updates
  8. CI Pipeline Optimization