Next.js Discord

Discord Forum

Does nextjs cache fetch response by default ?

Unanswered
Longtail tuna posted this in #help-forum
Open in Discord
Avatar
Longtail tunaOP
1. https://nextjs.org/docs/app/building-your-application/data-fetching/fetching
" This component will fetch and display a list of blog posts. The response from fetch is not cached by default. "
2. https://nextjs.org/docs/app/building-your-application/caching
" // The fetch function is automatically memoized and the result is cached "

3 Replies

Avatar
" // The fetch function is automatically memoized and the result is cached "

This is wrong, the correct term should be:

"// The fetch function is automatically memoized"
The code snippet on your second link focuses on memoization
which is different from the cache from the first link