In the past the approch was to only target young girls before they had sex for the first time, which turned out to not reduce the spread of HPV as much as hoped. Only in recent years the recommendation changed to also vaccinate boys and increasingly also people with previous sexual encounters.