Next.js · Middle · Question 8 of 75

Which cacheLife profile applies if you don't specify one in 'use cache'?

Explanation

The default profile: stale 5 minutes, revalidate 15 minutes, expire never. There are presets seconds, minutes, hours, days, weeks, max, and custom profiles in next.config. The docs recommend always specifying cacheLife explicitly so the behavior is clear at the call site.

Further reading

Problem with a question

Next.js · Middle · question 8

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