While the functional profile of CD4+ TRM was largely comparable after vaccination and influenza infection, functional CD8+ T-cell responses differed between the treatment groups. This evidence concerns the gene CD8A and influenza.