Next.js · Middle · Question 49 of 75
What does staleTimes in next.config control?
- ✓Correct answer: How long segments live in the client router cache
- 2How long
fetchresponses live in the server cache - 3The timeout for generating static pages at build time
Explanation
The client router cache stores the RSC payload of visited and prefetched segments so back/forward navigation and repeat visits are instant. staleTimes sets how long this data is considered fresh for dynamic and static pages. The server data cache is configured separately.