Resonance dynamics in compressible cavity flows using time-resolved velocity and surface pressure fields