Why is the result of this fetch request in Next.js not cached? #69006
Replies: 1 comment
-
|
I just realized that I have to build the site statically and run the production server for the caching. The problem was that I was using the hot-reloading development server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following server component in Next.js:
I expect the output to be:
but it turned out to be
Why isn't the built-in caching working?
More information about cached fetching can be found here.
Beta Was this translation helpful? Give feedback.
All reactions