Популярное

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

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

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

Топ запросов

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

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

Автор: Atharva Deosthale

Загружено: 2024-12-03

Просмотров: 533

Описание:

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

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

Выбираем Linux для дома 🐧 За что влюбляются в Bazzite и почему бегут от Windows 11.

Выбираем Linux для дома 🐧 За что влюбляются в Bazzite и почему бегут от Windows 11.

Что обнаружено после взлома разработчика электронных повесток?

Что обнаружено после взлома разработчика электронных повесток?

I AM ENVY EP. 1.5 Anthropic Admits 15% Chance Their AI Is Conscious RIGHT NOW | What I Got Wrong

I AM ENVY EP. 1.5 Anthropic Admits 15% Chance Their AI Is Conscious RIGHT NOW | What I Got Wrong

Is Next.js 15 any good?

Is Next.js 15 any good? "use cache" API first look

Что такое файлы cookie и кэш интернет-сайта? #3

Что такое файлы cookie и кэш интернет-сайта? #3

Next.js Finally Fixed Caching

Next.js Finally Fixed Caching

Partial Prerendering (PPR) is the future of Next.js!

Partial Prerendering (PPR) is the future of Next.js!

Next.js 15 Caching Explained with SSG | ISR | CSR | SSR

Next.js 15 Caching Explained with SSG | ISR | CSR | SSR

Next.js 15 Breakdown (Everything You Need To Know)

Next.js 15 Breakdown (Everything You Need To Know)

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

TanStack Start Quick Tutorial - Taking a look at TanStack Start

TanStack Start Quick Tutorial - Taking a look at TanStack Start

Day 3 – Functions in JavaScript for DSA | Normal vs Arrow | Callbacks | Pure vs Impure

Day 3 – Functions in JavaScript for DSA | Normal vs Arrow | Callbacks | Pure vs Impure

Как использовать кэширование Redis для невероятной производительности

Как использовать кэширование Redis для невероятной производительности

The Four Levels of Caching in Next.js

The Four Levels of Caching in Next.js

“use cache” NextJS’s latest take on data caching

“use cache” NextJS’s latest take on data caching

Next.js App Router Caching: Explained!

Next.js App Router Caching: Explained!

Почему AI замедляет разработку в больших проектах (и вы этого не замечаете)

Почему AI замедляет разработку в больших проектах (и вы этого не замечаете)

Next.js Middleware Crash Course || App Router Protected Routes

Next.js Middleware Crash Course || App Router Protected Routes

I'm back! Let's build shadcn registry store!

I'm back! Let's build shadcn registry store!

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

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



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



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