Highlights•In mastitis, coagulated milk significantly expands (P = 0.011) the pars papillaris.•After more severe mastitis, the regeneration of the pars papillaris is slower.•Mastitis and its healing have no effect on the size of the streak canal and teat end.