Interestingly enough, cold storage (in a more limited way) was already used centuries before the invention of the electrical refrigerator. For example, in Germany beer was only brewed in winter to avoid spoiling it during the warmer months, and stored in underground beer cellars which were kept cool using ice "harvested" during the winter. To help keep the cellars cool, chestnut trees were planted over them. And from there it was just a small step to also serving the cool beer on benches under the shady chestnut trees (only the beer was provided, food was BYO) - and thus the traditional German beer garden was born.
One small correction, Wikipedia claims that the prohibition against brewing during the summer months was to minimize fire risk, not spoilage.
> The cool seasons were chosen to minimize the risk of fire when boiling mashed grain into wort. Numerous conflagrations had occurred, which resulted in the prohibition of brewing during the summer months. In response, large breweries dug cellars in the banks of the River Isar to keep their beer cool during storage. "Beer cellars" for consuming beer on premises naturally followed.
https://en.wikipedia.org/wiki/Beer_garden#History