Summer heatwaves mean you might have to switch up your grocery shopping strategy. Here's how to best preserve your groceries with food safety in mind.