There are plenty of photographs on the internet from 1919 - 1920 showing entire crowds of masked individuals as well as placards describing legal restrictions in the local jurisdictions.
They had no vaccines, but all the other ‘solutions’ that we are familiar with were utilized.
And in hindsight for decades since, as the ‘lessons’ of that pandemic, all those familiar solutions were decried as less than useless