Off-equilibrium response function in the one-dimensional random-field Ising model