in 1795 , the french military offered a cash price of 12,000 francs for a new method to preserve food and nicolas appert proved it by canning to prevent micro-organisms from entering and proliferating inside shut it , rusk and eat .