On-Demand Revalidation in Next.js - React Tutorial 84

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Just wanted to point out an important point that wasn't mentioned. Default IRS (non on-demand) does NOT invalidate the cache immediately. It depends on a user visiting the page AFTER the revalidate period has expired. Only when the 1st user visits that page after the expiration, the revalidation will be triggered. That means that the user will trigger the revalidation on the 1st load, but will only see the updated page on the 2nd load. This is what is shown between 2:22 and 2:46. Of course there's the time one has to wait to rebuild the static page, but that's usually negligible. Peace!

sidhree
Автор

How can you do this using the pages directly and thru postman etc.. I can't get it to work.

venicebeachsurfer
Автор

ur explanation is on point, thanks bro

kenthungbluthung
Автор

is it possible to revalidate array of paths ?

AjayK