Next.js use cache explained with tested 16.4 code: Cache Components, cacheLife profiles, cacheTag, updateTag vs revalidateTag, private and remote caches.
Been fighting with layer caching for weeks on my node app builds. Turns out moving the package.json copy before the source copy actually works like everyone says it should. Cut my build time from 8 minutes to 45 seconds.