It is thought that some horses are allergic to certain pollens, which causes them to headshake. However horses normally react to flies, and headshaking may be a fly defence over-reaction even if flies are not present.
The use of nose nets is often perceived to improve the problem. Nose nets are not allowed in all competitions. However British Dressage has approved of the use of some muzzle nets.