whole wheat/grain flour will go sideways long before white flour.
Depends on if it is ground flour or not. Ground wheat flour lasts longer in the freezer than unfrozen. White flour lasts about a year before I can taste the difference. But unground wheat kernels lasts forever. I have plenty over 40 years old that tastes fresh when freshly ground.