When is the best time for a flu shot?

When is the best time for a flu shot?