Why don't we include content type (e.g. image/jpeg) inside CIDs?
- undefined PL Launchpad
Why don't we include content type (e.g. image/jpeg) inside CIDs? So that we not only know that blob contains binary data, but also that it’s JPEG-encoded image.
Adding an indicator in the content's special leading set of bytes can provide a system with different properties. That said, the indicator must be hashed to make it functional, as otherwise it would carry no logical value. Additionally, adding more information to the Merkle tree can be both a blessing and a curse - doing so makes it harder to change its contents, but at the same time gives you more multitasking capabilities. A careful assessment of each specific case is advised when deliberating whether or not to serialize something; this depends largely on circumstances. To find out how this usually works you can look through [this post](https://pl-launchpad.peeranha.io/experts/1419/how-does-the-requester-know-the-cid-before-knowing-what%E2%80%99s-on-it%3F)