Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Everything you need to know about "use cache" in Next.js!

programming

programmer

reactjs

react

nextjs

use cache in nextjs

how to disable cache nextjs

use cache directive

cacheLife and cacheTag

nextjs 15 caching

nextjs 15

nextjs 15 dynamicIO

Автор: Atharva Deosthale

Загружено: 3 дек. 2024 г.

Просмотров: 460 просмотров

Описание:

Hello guys! In this video, we will look at the "use cache" directive in Next.js. Next.js 15 introduced a new experimental feature named dynamicIO where you can turn your Next.js app from cache opt-out (default) to cache opt-in, which means that you need to manually mention which parts of the app are cached. Next.js will no longer cache anything by default, which was a community demand.

In this video, we will look at Next.js documentation of the "use cache" directives, try it in our Next.js canary app, and look at other things with it such as cacheLife and cacheTag for revalidation.

NOTE: dynamicIO is EXPERIMENTAL, please use it with caution in production environments or avoid doing that at all. There might be weird bugs that are undocumented. Also note that enabling this flag will instantly make your app cache opt-in, meaning every request which was previously cached, will no longer be cached, so make sure you know which requests you need to manually cache before pushing to production.

If you liked the content and found it useful, make sure you support me by clicking the subscribe button and sharing this video with friends in need. 🤝

Links

Documentation for "use cache" (Next.js Canary) - https://nextjs.org/docs/canary/app/ap...

cacheLife - https://nextjs.org/docs/canary/app/ap...

cacheTag - https://nextjs.org/docs/canary/app/ap...

My video on Partial Pre-Rendering in Next.js -    • Partial Pre-Rendering in Next.js! Learn ho...  

Any suggestions? Leave in the comments below!

TIMESTAMPS

0:00 - Introduction
0:58 - Documentation for the "use cache" directive
3:03 - Demonstrating "use cache" in code and comparing different version behaviours
12:42 - cacheLife and cacheTag
16:59 - Conclusion

My links
E-mail - [email protected]
Blog - https://blog.atharva.codes
Latest Links - https://links.atharva.codes
Twitter -   / athudeosthale  
LinkedIn -   / atharvadeosthale  

#programming #programmer #javascript #nodejs #npm #reactjs #react #typescript #nextjs #next #cache

Everything you need to know about "use cache" in Next.js!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]