Next.js · Middle · Question 49 of 75

What does staleTimes in next.config control?

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.

Further reading

Problem with a question

Next.js · Middle · question 49

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz