St. Bernard Rescue Dogs

Cartoons show St. Bernard rescue dogs with those barrels under their chins. I always assumed (or heard somewhere) this was based on rescue dogs in the Alps. Is there any truth to this? And, what’s in those barrels?

From a previous thread