Accrington Stanley grabbed a dramatic last-gasp cup winner in the first competitive meeting against the Clarets.
Matty Pearson’s 120th minute strike settled a game of precious few chances, just when penalties looked on the cards.
Andre Gray had the Clarets’ best chance of the game, seeing his close-range effort saved by Reds’ keeper Elliot Parish.
And although Nick Pope denied Stanley’s Romy Boco with a sensational save in extra time, the Burnley keeper was helpless to deny Pearson at the death.
Sean Dyche made 10 changes for the EFL Cup second round game.
There were first competitive starts for Clarets’ quartet Nick Pope in goal, defender Jon Flanagan, teenage Aussie midfielder Aiden O’Neill and wide man Johann Berg Gudmundsson.
James Tarkowski assumed the captain’s armband in the absence of Tom Heaton, who was given the night off.
Former League Cup winner Paul Robinson was named on the bench along with Development Squad striker Ntumba Massanka.
The Clarets started well, with O’Neill and Michael Kightly conjuring up and early opening and Lukas Jutkiewicz flashing a dangerous low cross across the six-yard box.
Burnley dominated possession in the opening quarter, and from another Jutkiewicz cross. Kightly’s deflected header was comfortable for Reds’ keeper Elliot Parish.
And soon after, Stanley carved out their first opening as John O’Sullivan’s deep cross was volleyed wide at the far post by centre back Mark Hughes.
Vokes pulled a shot wide and Parish denied Gudmundsson with a brave dive at the Icelander’s feet.
And after constant probing, Burnley carved out their best opening of the half 10 minutes before the break.
Vokes and Kightly combined well down the left and from the winger’s low cross, Jutkiewicz was a stud away from converting at full stretch.
Burnley were back in the ascendancy from the restart and Vokes was unlucky when he let fly from 30 yards and saw the shot deflected inches over the bar.
And from a threaded Fredrik Ulvestad pass just before the hour mark, Vokes picked out strike partner Jutkiewicz with a first time cross that the former Middlesbrough striker met with a diving header that curled just wide.
Little had been seen of Stanley in an attacking sense, in what was manager John Coleman’s 100th game in charge of his second spell.
And as Burnley continued to dominate play, Andre Gray replaced Vokes in a straight swap with a quarter of the game remaining.
A rare Reds’ break saw Sean McConville test Pope with an 18-yard daisy-cutter, before Gudmundsson returned the compliment by firing at Parish.
And in the last minute of normal time, the best chance to settle the tie in normal time came and went.
A sweet passing move ended with Gray pouncing on Gudmundsson’s clever assist, only for Parish to make a vital point-blank save and take the tie to an extra 30 minutes.
Stanley enjoyed their best spell of the game in the first period, with as deflected shot from Davies leaving Pope stranded and thankfully flying inches wide of the post.
But the Reds were thankful to Parish again at the end of the half as the last line of defence dived to his right to claw away Arfield’s angled drive. And with the whistle imminent, Gray’s perfect finish from 20 yards was frustratingly chalked off for a barge by the striker.
George Boyd replaced Jutkiewicz at half time in extra time, as Burnley made their third and final change.
But it was Stanley who were out of the traps quickest - and from a hanging right wing cross, it took an incredible save from Pope to deny Romy Boco, when the Benin international looked certain to score with a firm downward header.
And just as the Lancashire derby seemed set for a shoot-out, Pearson drilled home following a scramble in the area to settle the second round tie.
BURNLEY: Pope, Darikwa, Tarkowski, K Long, Flanagan, Kightly (Arfield 81), Ulvestad, O’Neill, Gudmundson, Jutkiewicz (Boyd 105), Vokes (Gray 67).
Subs: Robinson, Massanka, Anderson, Lafferty.
Booked: Ulvestad 79
STANLEY: Parish, Pearson, Hughes, Beckles, McCartan (Boco 68), McConville, Hewitt, O’Sullivan (Davies 100), Conneely, Kee (Lacey 84), Donacien.
Subs: Jones, Hery, Sykes, Chapman.
Ref: T Harrington
Att: 3.170 (1,824)