Next revalidate cache when no implicitly server indication #74558
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/z5xghx
To Reproduce
Current vs. Expected behavior
I expected the api call to be made on server and cache 10 seconds.
But I can see that it's not the case, it served up-to-date data.
If I add 'use server' inside
product.service.ts
the fetch will be executed on server and cached.Screen_Recording_Compressed_1080p.mp4
At least the expected behavior for me, is too have a info message that the cache has been skip because the function is use inside a client-side files.
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Nov 14 18:15:21 PST 2024; root:xnu-11215.41.3~13/RELEASE_ARM64_T6041 Available memory (MB): 49152 Available CPU cores: 14 Binaries: Node: 18.19.0 npm: 10.2.3 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 15.1.3 // Latest available version is detected (15.1.3). eslint-config-next: 15.1.3 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: