Tech
Understanding Next.js Page Caching (with a real example)
Caching can be a tricky topic, especially when pages don’t update the way you expect.
I recently ran into an interesting issue while working on the /writing page of my site. Whenever I added or updated articles, the changes did not show immediately. Oddly enough, the individual article pages updated as expected, but the listing page stayed stale.
After some digging, I realized this was not a bug. It was Next.js doing exactly what it is supposed to .
How Next.js caching works
...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to