Configuration

Client router segment stale times

Experimental staleTimes adjusts client router cache retention in seconds. Static and dynamic values are not server data expiration, and are not an authorization boundary. Compare ordinary navigation with history navigation and refresh in an isolated compatible lane; avoid production adoption without exact-version review. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/staleTimes. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
experimental.staleTimes.static; experimental.staleTimes.dynamic

Working Example

Example Snippetnextjs
export default {experimental:{staleTimes:{dynamic:0,static:60}}}
Next.js Reference