The Caching Layers — Concept Check
Questions on The Caching Layers. Four caches sit between a request and your data, each with its own lifetime and its own way of being wrong. Naming them is what makes a staleness bug diagnosable.
Questions in this quiz
8 questions on The Caching Layers — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A developer notices that after deploying a new version of their app, the data displayed on the static pages is outdated. A hard refresh solves the issue. Which cache layer is likely causing this?
- AData cache
- BRouter cache
- CRequest memoization
- DFull route cache
2.In Next.js 15, a developer uses `fetch(url)` without specifying caching options. What will be the default behavior?
- AThe data will not be cached by default.
- BThe data will be cached for 60 seconds.
- CThe data will be cached for the session duration.
- DThe data will be cached indefinitely.
3.A page that was previously static (○) is now dynamic (ƒ) without any intended changes. What could be the cause?
- AA fetch call with `cache: 'force-cache'` was added.
- BThe page uses `fetch(url)` without cache options.
- CA cookie read was introduced in a shared layout.
- DThe page was accidentally marked with `dynamic = 'force-static'`.
4.A developer uses `fetch(url, { cache: 'no-store' })` in their Next.js 14 app. What is the effect of this?
- AThe data will be cached until the next deploy.
- BThe data will be cached indefinitely.
- CThe data will not be cached at all.
- DThe data will be cached for 60 seconds.
5.After deploying a new version, a developer finds that static content is not updating. Which cache layer is least likely the cause?
- ARequest memoization
- BRouter cache
- CFull route cache
- DData cache
6.A developer wants to ensure that a specific subtree remains dynamic in Next.js 15 without affecting the entire route. What should they use?
- A`dynamic = 'force-static'`
- B`fetch(url, { cache: 'force-cache' })`
- C`unstable_noStore()`
- D`fetch(url, { next: { revalidate: 60 } })`
7.Which cache layer is responsible for deduping identical fetch calls within a single render pass?
- AFull route cache
- BData cache
- CRouter cache
- DRequest memoization
8.A developer reads a blog post suggesting that `fetch(url)` caches data indefinitely by default. Why might this advice be misleading?
- AThe advice applies to both Next.js 14 and 15.
- BThe advice is only true for Next.js 14.
- CThe advice is only true for Next.js 15.
- DThe advice is outdated and applies to neither version.