With the rapid development of deep learning, face forgery detection methods have also achieved remarkable progress. However, most methods suffer significant performance degradation on low-quality compressed face images. It is due to: (a) The image artifacts will be blurred in the process of image compression, resulting in the model learning insufficient artifact traces; (b) Low-quality images will introduce a lot of noise information, and minimizing the training error causes the model to absorb all correlations in the training dataset recklessly, leading to the over-fitting problem. To solve the above problems, we consider learning domain invariant representations to inscribe the correct relevance, i.e., artifacts, to improve the robustness of low-quality images. Specifically, we propose a novel face forgery detector, called DIFLD. The model has the following components: (1) a high-frequency invariant feature learning module(hf-IFLM), which effectively retrieves the blurred artifacts in low-quality compressed images; and (2) a high-dimensional feature distribution learning module(hd-FDLM), that guides the network to learn more about the consistent features of distribution. With the above two modules, the whole framework can learn more discriminative correct artifact features in an end-to-end manner. Through extensive experiments, we show that our proposed method is more robust to image quality variations, especially in low-quality images. Our proposed method achieves a 3.67% improvement over the state-of-the-art methods on the challenging dataset NeuralTextures.