The secret? Resin epoxy.

Photo courtesy of Ian Kennedy. Hair spray found in Yamagata, Japan.