Rovers boss Grant McCann rang the changes, with an alteration in shape as well as personnel. And they made a quick start as they went in front after 15 minutes - Luke Molyneux getting to the byline and putting in a dangerous, low centre which skipper Owen Bailey tucked away from close range - his ninth of the campaign.
Bailey then blasted over in search of a second but that miss came back to haunt the visitors when Cardiff levelled. Omari Kellyman fired home from a central position after Isaak Davies burst past Sean Grehan and put in a wicked delivery.
And the hosts turned the game on its head as they went in front when Cian Ashford held off ample Rovers defenders, dashed half the length of the pitch and fired beyond Thimothee Lo-Tutala.
But the visitors summoned a comeback of their own when Cardiff-born Charlie Crew played a wicked through-ball into Brandon Hanlan and he fired home into the bottom-right corner.
Yousef Salech then propelled the hosts back in front. He initially headed a chance over the bar but atoned for that a minute later when he beat Connor O'Riordan to the ball and made it 3-2. A topsy-turvy game then continued as Harry Clifton fired home Rovers' third.
Both sides went in search of a winner and just as it looked as though spoils would be shared Joel Bagan popped up and fired home a winner to kill Rovers' hearts.

9. Charlie Crew 5
Back in his home city, it was a mixed bag with some needless fouls but then a sumptuous assist to pick out Hanlan - one of a clutch of key passes. Off before the hour. Photo: Howard Roe/AHPIX LTD

10. Harry Clifton 7
Brilliant burst through the middle early on, only to fire just wide of goal. Faded after that, with precious little involvement until a super strike to make it 3-3. Then blazed over for what should have been a fourth. A constant pest. Photo: Howard Roe/AHPIX LTD

11. Brandon Hanlan 7
Could have had a treble. Led the line well, battling against the Cardiff rearguard for every scrap. Showed his clinical side with a great finish for Rovers' second goal but then fired wide before seeing a header brilliantly tipped over. Getting better and better. Photo: Howard Roe/AHPIX LTD

12. Jamie Sterry 6
Was positive in his play as he linked up ample times with Molyneux down the right. Photo: Howard Roe/AHPIX LTD

