If you have an office job that requires heavy computer use, then consider wearing eye strain glasses. These are specifically designed to filter out blue light that can make the eyes tired with prolonged exposure. They will allow you to look at the monitor for extended periods without developing pain or compromising your vision. Always have one handy on your desk or in your bag so that you can whip it out whenever you need it.
Of course, you should also take regular breaks and get away from your desk from time to time. Focus your eyes on something far away by looking out the window. You could also close your eyes for a minute while moving your eyes around. Do these things every hour or so and you will feel the difference. You will feel less strained at the end of your shift.