Perfect games don’t exist in playoff hockey, and the Rangers didn’t win this year by playing flawlessly. They won by shaking off their mistakes and having short memories, which is exactly how they earned Tuesday night’s 4-1 Game 3 win over the Flyers at Wells Fargo Center to take a 2-1 series lead.

Just when the Blueshirts were poised to cough up a 2-0 lead for the second straight game, top-pair defenseman Dan Girardi launched a one-timer over the shoulder of Flyers goalie Ray Emery to push New York’s lead back to 3-1 at 5:17 of the second period.

Right when Philly seemed certain charge back with two power plays in the final nine minutes of the second, Blueshirts penalty killers blocked seven shots and allowed only two through to Henrik Lundqvist (31 saves).

Lundqvist had his best game of the series, stopping all 13 shots he faced in the second period when the Rangers put only four on Emery in those 20 minutes. Then behind first-period goals from Derek Stepan and Martin St. Louis and third-period insurance from ex-Flyer Dan Carcillo, New York reclaimed home ice after surrendering it in their Game 2 loss at the Garden.