Jars should have 1” head space between liquid and lid, and I would stick with canning jars, not reused jars from store. Dry goods with oils such as nuts, cornmeal or whole wheat flour can benefit from freezing because the oils will stale slower. Hot weather will speed it up. Jars might be good option for those, too, as you don’t want to attract creatures.