The infantry was supposed to wear a shako (it was a slightly different shape than in 1812) when out of order a cap (sewn in the regiment, and not at the factory for the needs of the army). Later, instead of a shako, a leather helmet was introduced, a project of Nicholas 1.
The officers wore a shako, but outside the ranks they replaced the shako with a cap with a visor, a uniform for a frock coat.
Here is the information from the encyclopedia
In the armed forces of the Russian Empire, the soldiers' cap belonged to a special category of items of clothing allowance for the troops - uniform things. The cap was released in the form of materials and always for a certain period. Made in regimental workshops.
The cap was introduced in 1811 to replace the forage caps of 1797, which looked like a cap bent in half, and was first made from outdated uniforms [1]. The cut of the cap has changed several times. In 1862, the cap was abolished for everyone except cuirassiers.
In 1872, caps were returned to the guards, cavalry, Cossacks and all officers. In 1881, the cap was returned to the entire army, in the guards and cavalry with a cockade on the band, and in the army - on the crown, among non-combatants - with a visor and cockade on the crown.
In Russia in the 19th century, on uniform caps on bands there was a cockade and / or the emblem of the type of weapon (badge), engineering specialty, and so on. An additional sign could be placed on the crown. In summer, a white cover was put on the cap.
In 1906, a khaki summer cap was introduced, with a visor and external chinstrap for all. In 1910, a marching cloth cap was introduced instead, and the outer belt in the infantry was canceled.