Edited to add, and the jar too.
The Ball Perfect Mason Jar was introduced in 1913 with a bead for the seal to rest upon. That would have been under patent and expensive in the 20s. So the tech (barely) existed to vacuum seal pressure cooked canned food in the 20s but it would have been patented and too expensive compared to cheaper cans.
So if you ever get flung back in time, probably your best best is evaporated sea salt. Then work your way up into simple cosmetics. You don't have the ability to create the supply chain necessary to create canning.
http://www.ancient.eu/article/592/
So, they would have been able to produce glass jars alright and would have probably used (like it was done for wine and amphorae ) "sealing wax" together with cork (and/or some resins):
https://vinepair.com/wine-blog/history-wine-transport-8000-y...
And BTW, they were quite good at making airtight cans, too:
https://www.theguardian.com/uk/2003/jul/28/artsnews.london
(though most probably it would have been far too expensive to mass produce them at the time).
Even if they had rubber in enough quantity, they'd have to vulcanize [2] it to make it work. That was years, centuries beyond them.
1 - https://en.wikipedia.org/wiki/Natural_rubber 2 - https://en.wikipedia.org/wiki/Vulcanization Edited for the vulcanization.
Perhaps not in the 1920s though.
If I remember correctly from making jam with my mother, it's important to pour the really hot jam into the heated jars to ensure everything stays sterile -- so the jam going into the jars is around 105°C.
I also remember it very clearly, as jam-making was by far the most dangerous cooking we ever did together. I could probably chart my maturity based on how much I was allowed to help, starting from washing the jars and putting them in the oven to sterilize, all the way to doing the whole process while she watched.
>The whole industry switched to a new standard for the ripe California olive.
"It has to be heated to 240 degrees. And only a can would tolerate that, physically—you couldn’t do that with a glass jar."
Eventually, California olives came back. In cans.
Even if it was 240 Celsius (which I doubt), glass can bear it just fine.