Text this: The gluon self-energy in cavity quantum chromodynamics