next.js
95ee107a - Update caching.mdx (#83149)

Commit
143 days ago
Update caching.mdx (#83149) In the docs it says => ( The default caching behavior of fetch (e.g., when the cache option is not specified) is equal to setting the cache option to no-store ) But when I code, I found that fetch default behaviour and setting the cache option to no-store are different. After building process .... When changing routes. default is stored as cache. I see that because there is no new network request when I change route. In setting the cache option to no-store, it is making a new network request as soon as i get back to the page. so docs and real working one are mismatch. I also provided how tested with pictures belows. Please build... and check Change routes... <img width="545" height="371" alt="image" src="https://github.com/user-attachments/assets/4931302f-b5ef-4016-b43d-cbbd790c1e11" /> <img width="601" height="409" alt="image" src="https://github.com/user-attachments/assets/3f2b4a79-fa24-466f-8330-0dc8323b6c16" /> Fixes https://github.com/vercel/next.js/issues/83146 --------- Co-authored-by: Joseph <joseph.chamochumbi@vercel.com>
Author
Parents
Loading