Question · Next.js course · Module 5: Rendering Strategies

Default fetch caching in Next.js

How does Next.js (since version 15) treat fetch results without a cache option by default?

Answer options

  • Caches all fetch requests and can be controlled with options
  • Does not cache them - you opt in explicitly, e.g. with cache: 'force-cache'
  • Caches only GET requests to external APIs
  • Caches only static resources like images and CSS

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