In the past years a good comprehension of the infrared gluon propagator has been achieved, with a good qualitative agreement between lattice results and Dyson-Schwinger equations. However, lattice simulations have been performed at physical volumes which are close to 20 fm but using a large lattice spacing. The interplay between volume effects and lattice spacing effects has not been investigated. Here we aim to fill this gap and address how the two effects change the gluon propagator in the infrared region. Furthermore, we provide infinite volume extrapolations which take into account the finite volume and finite lattice spacing. We also report on preliminary results for the gluon propagator at finite temperature.