Further, this report demonstrates for the first time that i.n. vaccination with polyanhydride nanoparticles can induce tissue-resident memory CD4 and CD8 T cells, confer protection against a heterologous virus challenge, and protect against infection in outbred populations. Here, CD4 is linked to infection.