For Yersinia pestis (the black death) public sanitation is not a factor... Waste management also often wasn't as bad as people imagine today, the stories of the worst, not average sanitations are what are most commonly related about the past (why, shock value of course).
Nor is there need to go so far back in time. The British were in such poor health that 40% of their military volunteers for the Boer War and the First World War were unfit, in part because of malnutrition and diet deficiencies like rickets. Much of this was due to poverty, and a belief by the rich in laissez-faire capitalism, where issues like clean water, working sewage, and uncontaminated foods were something best left to the markets, not the government.
Much of the gains were seem to have been through social democracy in one form or other, with at least government oversight if not outright control of water, food, health services, etc. It probably helps they haven't continued their long held tradition of invading each other every generation or so. I can't say though I'm fond of the 'sacrifice' that is the White Man's Burden, or the hard work that is conquering and ruling other countries.
Personally, I think Japan and (South) Korea also have impressive rags-to-riches stories, especially considering Japanese seclusion until the mid-1800s. (Japan of course modeling itself on Imperial Germany, and hoping to keep itself out of the the hands Western imperialism, as befell China and India.)
Of course, it's also possible to rank "riches" by GDP, in which case Qatar is the clear winner, since it became a high income economy only since the 1950s.
Here are en.Wikipedia, a UK Government site, and a training programme from the US CDC about their Public Health Prevention Service which talks about Obesity.
http://en.m.wikipedia.org/wiki/Public_health
https://www.gov.uk/government/topics/public-health
http://www.cdc.gov/phps/More.html
All three of these reputable sources specifically mention obesity as a public health problem.
What source are you using for your more restricted meaning of the term?