I always pack dry food--crackers, granola bars, donuts, gummy snacks etc with no problems. Just a hint--don't pack one bag with clothes and one bag with snacks exclusively. Mix it all up (as long as the food isn't messy). If the airline happens to lose/delay one of your suitcases you would hate to be at the hotel with an entire suitcase of Goldfish and granola bars and no clean clothes and toilitries! I never pack one bag (going) with only one type of thing--like clothes for only one or two members of the family. I tend to pack more in terms of "days"--here is everything in this suitcase we need for 3 days, and then 3 more days in this suitcase. . . make sense? This way if one suitcase is delayed (I have had them delayed by 2 days, but never lost--knock wood!), we still have everything we need to be off and running and dont' need to stress about buying clothes and underwear for 1 person!!!
BUT, I had some leftover Cokes a few years ago (we bought them during a grocery stop there) and put them in my checked luggage. YEP, they EXPLODED! The checked luggage area is usually not pressurized, and I think there may also sometimes be a temperature difference that can affect contents under pressure like soda and shaving cream. I think it can also pop potato chip bags.
I will never do that again! It was a mess. Normally I would probably just pack a few in my carry on (it would survive fine in the cabin) but since you can't do that anymore you are going to have to learn to love Coke, water and/or Kool aid!!!
I usually pack shaving cream in Ziplock bags also. The only problem I have had with Shampoo type products is just when too much weight was placed on top of my suitcase and that forces the lid off.
We also bring empty water bottles (I have the Brita type) and I am also bringing those new Kool-aid single serving powders with us for the kids and I like some of the single serve Crystal lites for myself.