From the 1840s to the 1870s , baseball players wore many kinds of hats , such as straw hats .
From the 1840s to the 1870s , baseball players various types of hats , such as straw hats , boating caps , jockey caps , and even cycling caps .