Next.js 15 Fixes Caching Issues | Nextjs Default Cache Changes
Вставка
- Опубліковано 11 лют 2025
- Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGra...
Next.js 15 RC was just announced, and it fixes many of the caching issues that developers have been frustrated with. I quickly review the new cache settings and show how you can use them in Next.js 14.2 as well.
💖 Support me on Patreon ➜ / davegray
⭐ Become a full-stack web dev with Zero To Mastery Courses:
Complete Next.js Developer: bit.ly/CompNex...
Advanced React: bit.ly/AdvReac...
Junior to Senior Dev Roadmap: bit.ly/WebDevR...
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegr...
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoff...
🔗 My Next.js Videos: • Next.js Tutorials for ...
👇 Follow Me On Social Media:
GitHub: github.com/git...
Twitter: / yesdavidgray
LinkedIn: / davidagray
📚 Tutorial References:
🔗 Next.js 15 RC: nextjs.org/blo...
🔗 Next.js 14.2: nextjs.org/blo...
🔗 Next.js staleTimes: rc.nextjs.org/...
Was this tutorial about Next.js 15 RC and the new caching updates helpful? If so, please share. Let me know your thoughts in the comments.
#nextjs #caching #cache
Dave may be the most wholesome web dev UA-camr out there
Thank you!
Awesome video Dave! I like what Next.js is doing. Lots of people complaining bc they don’t want to learn a couple little things. But I like the updates. I’m sticking with the next.js ecosystem.
00:20 - Spoiler alert (into a newer video about Nextjs): Soon enough Dave's graceful approach for sharing free knowledge will get short as well.
Thank you for everything, Dave.
It was an awesome ride, and you taught me A LOT of stuff.
I will always appreciate you and I will forever cherish your contribution to my progress as a new web developer in this world.
Nothing has ever been taken for granted. I wish you all the best with your premium members only type of channel and I hope that its new nature will reward you to your satisfaction.
(Unsubscribe.)
Judging based on the length of one video when I have created 4 years of long form videos - kind of harsh. And I'm not only focused on my Patreon or any other premium content. I continue to create free content for UA-cam every week.
@@DaveGrayTeachesCode I guess I misunderstood the concept then.
I'm not familiar with channels where both kinds of content are mixed at the same page, so I thought that from now on you are a members-only channel.
According to the quality of your teaching, I didn't find it out of the equation.
I am familiar with the members-first model where videos are "eventually" (at some point) becoming approachable to everyone, and I am familiar with the members-only-other-channel for deeper dives, but uploading locked videos to the main channel which I'm subscribed to - may trigger some impact of frustration...
With all of that being said, I have no doubt that no one of your members-only viewers will ever feel any regret regarding his choice of becoming one.
@@wishmeheaven I think you are seeing the UA-cam memberships. They do get early access but those same videos become publicly available. I didn't even know you could see them if you weren't a member. That said, you will be able to see them in the near future.
@@DaveGrayTeachesCode Got it.
(re-)Subscribed.
0:15 No no you look amazing this way.
As a elixir/phoenix developer i enjoy this next js news 😊
Hi, you were great before the haircut Dave and you are still now ❤
Thank you!
could you make video on nextjs interview questions and their answers
Great request!
Thanks dave
hi dave i'm trying to install nextjs 15 but when I install. it will install nextjs 14 how do I solve this problem please. i've tried it multiple times but it install nextjs 14.2.3 and also the command is i've used from their website what could be the problem???
Next.js 15 is an RC (release candidate) right now. A stable version is not available. Follow the directions on their blog if you want it now: nextjs.org/blog/next-15-rc
Oh dave, last year I was prepared to watch your full nextjs course, the day I started it the next 14 came out and i was worried about it should i still complete the 13? Days are moving
Some things have changed. The concepts are solid though. If you go through it, make sure you install the version I used for each chapter.
I am using next js 14.2, and I am facing some lag time if I click on link, is there any solution? thanks
Moved to HTMX. Can't go back to React and NextJS. Life is too short.
Viable option if that is your preference. Strong opinions for and against it. Use the tools that work for you. 🙌
thanks!
Hey Dave, can you make a video covering stripe payments with MERN or Nextjs ? Thanks.
Didn't we learn nothing with the buggy Next.js 13/14 releases?! They wanted to release Next.js 15 at the event but even for Vercel standards it was unstable...
Yeah, I'm not using 15 yet.. but I like what is coming. I do show how to optionally add the biggest change with the current 14.2 release.
Next.js is pain! I am thinking about learning Remix or Svelte. Any suggestions here?
I think these changes will help with Next.js, but yes, I've heard good things about Svelte. Remix is also React and is going through some changes including a name change/merger with React Router.
@@DaveGrayTeachesCode thank you for you responses and sharing the knowledge!
As a Vue/Nuxt developer I am really enjoying watching React/Next nonsense 😂
Seriously considering learning some Vue this year 😀
Please update your PHP playlist and recreate it from beginner to advanced, specifically tailored for WordPress😠😭🙏
I've learned MERN stack. I've made three projects and hosted . Currently, I'm learning Next.js and working on projects. I'm unsure if I'll get a job or if I should continue working with my dad as a plumber."plz guide me I am in tough situation I am 25 year old unemployed 😢
Keep learning and it's good you have another skill to fall back on while you do.
do both bro, market is tough. coding can be a side skill and eventually pick up
Nice one sir
Thanks!
Create problems and then solve them. That's how you become the most used frontend framework lol. I don't understand why people still use Nextjs.
You've got a point. That said, I really like and do use Next.js. I like how they are listening and making these changes, too.
You are right but they didn't create the problem I would say caching was better. But developers didn't realize that so vercel has to back off.
From my perspective, the problems were likely caused by Vercel trying to be faster and them finally pushing back doesn’t redeem the problem.
the only reason I know who you are is cause the caching in Nextjs 14 is so confusing; i've spent more time this life trying to understand how it works than i did in learning javascript. i still don't understand why `export const dynamic = "force-dynamic";` doesn't work in my route (other opt-out methods work fine) but whatever, maybe someday it will make sense.
I think these changes will help!
might have a noCache() in a dependency
This is huge
Indeed. I agree!
For me sounds like they not fixed they just removed that "feature" they had
Or "changed" if you will. You can still cache everything if you want.
Prior to Next.js 15, the caching defaults were ham fisted on a level that defies belief. The lived experience is Supabase DB SELECT queries implicitly caching by default. In instances where you are relying on RLS for implicit WHERE clauses, you could literally get ANOTHER USER'S DATA. This type of oversight really makes me question the planning capability of the NextJS team. To boldly assume that you can foresee all edge cases and then impose defaults that act as a HUGE foot gun for your users is irresponsible, and frankly... stupid. WTF
❤❤🎉.
First to be here