Piping is not a necessary feature in a cap. It is usually used as decoration.
When the fabric is not thick enough to make as sandwich peak, we will have to make it as a piping sandwich. Polyester Microfiber is the example shown in the picture.
The cord inside is made of PP.