Child IPFS objects question

Could you all help me understand something here?

So it’s my understanding that the hash of an object in IPFS is determined by the contents of the object. So if you provide this hash back to the network, you get that same object back. I also understand that IPFS splits objects larger than 256kb into smaller objects that link to other objects.

So my question is based in how IPFS handles these child objects.

If I have two main objects (for example two web projects that contain the exact same node library). Would they both reference the same child object? Or would IPFS have two different versions of that child object, because it’s referenced from two separate places?

If the contents is byte-identical it would reference the same child objects.