Question · Next.js course · Module 9: Integrations and Advanced Features

use cache in Next.js 16

What does the 'use cache' directive in Next.js 16 enable?

Answer options

  • Automatic compression of all static files
  • Storing data exclusively in the browser's localStorage
  • Disabling caching for a given route
  • Declarative caching of function results or entire components at the server level

You can check the correct answer by solving this task in the CodeWorlds game.