Following infection with herpes simplex virus or contact sensitization, CD4+ and CD8+ TRM cells colocalize nearby hair follicles. Here, CD4 is linked to infection.