BALTIMORE -- Playing on the road against a playoff-quality team, Philip Rivers would have been delighted with a win no matter how it occurred.
The Chargers (8-4) trailed 30-20 with 6:13 remaining and 33-27 with 2:22 left before Rivers brought them back.
"These are the kind of games you got to win to get in (the postseason) and these are the kind of games you got to win if you do get in," Rivers said. "I'm not saying you're going to win all of them, but if you can't win these, you're not good enough."
Each team punted just once. Both offenses were clicking all day long, which made the outcome all that much sweeter for Rivers.
"Just the way we won. It was back and forth, back and forth, never quit," he said. "We got one more point than they had."
Baltimore (7-5) lost at home in November for the first time since 2009. The Ravens, who were 11-0 all-time at home against West Coast teams, fell 1 1-2 games behind AFC North leader Cincinnati.
The defense accepted the blame, even though it forced two turnovers.
"In the NFL, nothing is game, set, match as long as there is time on the clock," linebacker Terrell Suggs said. "We're up 10 at home in the fourth quarter and our offense gave us 33 points and usually that's enough. It wasn't. That's why this is extremely disappointing."
The Ravens last lost a game when they scored 30 points in October 2009, a 33-31 defeat at Minnesota. The last time it happened at home was in 2007, 33-30 in overtime against Cleveland.
Rivers responded with a 77-yard drive, capped by a 23-yard touchdown pass to Allen with 3:40 remaining.
Jones took the kickoff 72 yards to the San Diego 30, setting up Tucker's fourth field goal. It wasn't enough for the Ravens, who hadn't lost at home since the season opener.
San Diego, on the other hand, got off to an excellent start in a season-ending stretch drive that began in Baltimore and concludes with games against New England, Denver, San Francisco and Kansas City.
"The players never gave up and we just kept plugging away," coach Mike McCoy said. "That's what good teams do. The character of our team once again showed up, and when you've got a great quarterback like Philip Rivers, you got a chance to win every game just as long as there's time left on the clock."
San Diego's only punt came with two minutes left in the third quarter. The Ravens' lone punt occurred with 23 seconds to go in the period.
The Chargers converted all seven third-down tries in the first half, but Baltimore took advantage of two turnovers and scored on all four of its possessions for a 16-10 lead.
Notes: Forsett went over 1,000 yards for the first time in his seven-year career. He's at 1,009. ... Baltimore WR Marlon Brown landed hard on his back after making a first-down catch in the first quarter and left with a concussion. ... Chargers C Chris Watt took a hit on his calf in the third quarter and did not return.
Copyright 2014 by The Associated Press