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