Ryan Miller wanted to bounce back from his last outing. He did.

Now he wants to finish well at home in the season finale.

Miller, who was pulled after allowing four goals in 22 minutes during his previous start, was a rock for the Buffalo Sabres on Tuesday during a 4-2 victory over Pittsburgh. The goaltender made 40 stops, and the majority came from close range as the Penguins’ high-scoring offense buzzed the Buffalo zone.

“No matter what situation the game is, you prepare and you just go out and try to help the team,” Miller said in Consol Energy Center. “That’s what I try and do every night. Sometimes it doesn’t work out. Sometimes it does, like tonight. You just keep moving forward.

“Unfortunately, we don’t have a lot left to do this year.”

The Sabres have only one game left. They host the New York Islanders on Friday night to close a disappointing season.

Miller’s previous outing in First Niagara Center featured the four early goals and adversarial banter between the goalie and Buffalo’s fans. He wants to play in front of them again in what would be a milestone game.

“Yeah, why not?” he said. “It’d be 500, wouldn’t it?”

Indeed, Miller has played 499 games for Buffalo, a franchise record. The latest one was impressive.

“It’s always nice to win,” Miller said. “It does feel a little bit empty, but it’s nice to win.”

Miller’s efforts — coupled with a game-winning goal by Steve Ott and three-point night by Thomas Vanek — allowed the Sabres to end a two-game slide. They’ve beaten the Eastern Conference-leading Penguins twice in Pittsburgh in three weeks.

“We found a way,” Ott said. “It’s frustrating at times. We’ve had a lot of ups and downs this season, but consistency’s a main factor.

“There was never an issue if we could beat the best team in the league.”