Why didn’t cheese spoil when it was given as rations to soldiers?

Cheese-making was a preservative, so longevity was a given. Climate had much impact – the hotter it gets, the more salty the cheese. The right kind of cheese can last for many months just stored up in the basement, especially during winter (which was the main need for preserving food – little food in winter).