Say goodbye to the shutout streak.

And so long to the undefeated streak, too.

The Earthquakes saw too much Stefan Frei on Saturday night in a 3-1 defeat to visiting Toronto FC — San Jose’s first loss in five games that ended a four-match consecutive shutout streak.

The former Cal goalkeeper made save after save at Buck Shaw Stadium, leading to San Jose’s downfall in front of a vocal crowd of 10,214. The second-year Major League Soccer player was credited with six saves, including two momentum-sapping plays that made it difficult for San Jose to rally.

“They threw up so much firepower at us, and we were still able to hold on to the win on the road,” said Frei, whose team is 3-0-1 in its past four MLS matches.

The Quakes had a 3-0-1 run until facing Toronto, which moved into second place in the Eastern Conference. Now San Jose (5-3-1) has little time to regroup as it plays host to the Eastern-leading Columbus Crew on Wednesday.

The Earthquakes had no explanation for coming out flat at home after earning four points on a two-game trip. They didn’t play well until the final 20 minutes of desperation while trailing 2-0. Coach Frank Yallop played five strikers in the final 15 minutes as San Jose made a gallant effort to escape with a tie.

But the Earthquakes just couldn’t break Toronto (5-4-1), which lost its chance at a fifth consecutive shutout (counting two non-MLS matches) when Ramiro Corrales scored on a Bobby Convey corner kick in the 76th minute.

“The energy wasn’t good,” Yallop said. “We looked hesitant, a little nervous.”

The lack of confidence — and perhaps the elements — proved the Quakes’ undoing.

Toronto forward Chad Barrett scored in the 31st minute when San Jose defended its goal while facing the setting sun. Goalkeeper Joe Cannon said he couldn’t see the ball on Barrett’s score.

“It was the most brutal elements I ever had to deal with,” he said.

When a long serve came into the penalty box, Barrett and Jason Hernandez battled for control. The San Jose defender tried to head the ball to Cannon but mistimed it. Barrett pounced. He tapped the ball into the open net, knocking down Cannon, who was drawn off the line to try to make a desperate save.

San Jose fared no better in the 66th minute when Toronto’s leading scorer Dewayne De Rosario got the game-winner after collecting a long pass downfield.

De Rosario blew by defender Bobby Burling, who stumbled over Cannon, allowing the former Earthquake to tap it home. De Rosario also scored in stoppage time — his eighth goal of the season — when the Quakes pulled Cannon in an attempt to score the equalizer.

It was tough trailing the Reds at the half, considering De Rosario didn’t start after playing for Canada in an exhibition last week in Argentina. Canadian star Julian de Guzman, Toronto’s first designated player, also didn’t start after missing last week’s game because of a hamstring strain. He joined De Rosario to start the second half to bolster Toronto’s lineup.

Yet De Rosario’s first goal woke up the Earthquakes. The game turned into fast-break soccer as San Jose sent wave after wave of attackers forward. Once Corrales got his first goal of the season, the intensity heightened.

“It shows we’ll never give up,” said forward Chris Wondolowski, who was shut out for only the second time in seven matches.

But Frei and Toronto held.

“Our finishing wasn’t great,” Yallop said. “We had our chances.”

Contact Elliott Almond at 408-920-5865 and follow him on Twitter at http://twitter.com/elliottalmond.