CD8+ TRM cells provide superior protection against pathogens that invade barrier tissues and mucosal organs, yet the response of CD8+ TRM cells to bacterial infection is less defined than that for viral infection. Here, CD8A is linked to viral infectious disease.