I am talking about the process, where you cook food, for example, a vegetable and conserve it in a jar. The jar can then be stored in a non-refrigerated area.
Many recipes include adding salt, vinegar or some other preservative to the jar.
The process I am talking about only uses water and heat.
I am trying to do this for a third year, each time I have multiple jars going bad.
Most tutorials include the filled jar being heated up (in a water bath) and then (or even while heating) being turned on its head and being let to cool in this position until it is ready to be stored away.
Most tutorials mention, that there is a vacuum being formed, and the jar being on its head somehow helps the process.
It looks something like this:
The way I understand it is that during the heating process the air in the jar expands and escapes the jar, which reduces the air.
What I don't understand is why this is necessary, obviously there is no perfect vacuum and why the jar needs to be turned on its head?
Also, since the jar is cooked and all bacteria killed, why is air a problem?