Wiki https://en.wikipedia.org/wiki/Yes!_We_Have_No_Bananas
"The term has been resurrected on many occasions, including during
rationing in the *United Kingdom* in World War II, when the British
government banned imports of bananas for five years. Shop owners put
signs stating "Yes, we have no bananas" in their shop windows in
keeping with the war spirit.