'05 Grand Cherokee - possible head gasket problem

I bought a ‘00 Durango with a 4.7L that had that all in the oil filler cap. I cleaned it out and changed all fluids in it and never saw it again. Not sure what caused it but never really saw it again. Owned the Durango for about 5 years and never had a problem out of it.