The memory of the Covid-19 shock shapes how governments and publics react to any new outbreak with even a hint of international spread