Caffeine: Drinking coffee increases eye pressure for a short duration. A little coffee is fine, but excessive caffeine intake is not ideal. One study found that drinking 5 or more cups of caffeinated coffee increased the risk of developing glaucoma.
In summary, lifestyle choices can modify eye pressure and may influence the risk of developing glaucoma. Since there is not enough clinical data to make broad recommendations regarding lifestyle factors; you should discuss with your doctor whether specific changes may be appropriate for you.