The right-hander carried a perfect game into the seventh inning and faced the minimum 27 batters in a one-hitter that sent San Diego past the Pittsburgh Pirates 2-0 on Monday night.
Cashner (10-8) retired his first 18 batters before Jose Tabata grounded a clean single into right field leading off the seventh. Tabata was erased when Andrew McCutchen grounded into an inning-ending double play, and Cashner cruised the rest of the way for his first complete game in 31 career starts.
"I've had some no-hitters broken up before and I think in previous times I've learned to stay with my game plan and keep making pitches," Cashner said. "That was a big spot in the game with McCutchen up. I kept telling myself to keep throwing my sinker where I wanted to, even though I gave up the hit on it."
The Padres, who began play in 1969, remain the only major league franchise without a no-hitter.
Cashner, who has not allowed more than three earned runs in any of his last 11 starts, did not second-guess himself about throwing a sinker to Tabata.
"I didn't want to get beat with my slider there," Cashner said. "I still think it's a great pitch. I still think it's the right pitch. That's the way it goes."
Cashner struck out seven, did not walk a batter and threw 97 pitches. He also scored from second on a single, sliding home with the second run of the game, moments before giving up Tabata's hit.
Though Cashner said he had never scored from second base or slid into home plate as a professional, he did not blame that for losing the no-hitter.
"Scoring that run helped keep me in the game," he said.
The Pirates lost for the second time in eight games after entering the day tied for first place in the NL Central with the St. Louis Cardinals, who lost to the Rockies.
"Cashner was throwing three quality pitches for strikes and, most importantly, he was keeping them all down in the strike zone," Pittsburgh second baseman Neil Walker said. "Sometimes, you have games like this where the other guy just pitches a great game."
A.J. Burnett (8-11) took a shutout into the seventh but wound up with the loss. He allowed two runs and six hits in 6 2/3 innings, with three walks and eight strikeouts.
"A.J. pitched a heck of a ballgame himself," Pirates manager Clint Hurdle said.
San Diego broke through for two runs against Burnett in the seventh. Cedeno and Rivera opened the inning with singles, and Cashner bunted into a fielder's choice that left runners at the corners.
The Padres left runners in scoring position in the fourth, fifth, sixth and eighth -- but it didn't matter the way Cashner pitched.
"Once you get into the fifth inning, I always think about the possibility of a no-hitter," Padres manager Bud Black said. "The way Cash was throwing, where his pitch count was, the look in his eye -- the whole everything was set up for a good game."
San Diego closer Huston Street missed the game to attend to a personal matter and is not expected to rejoin the team until Wednesday. ... Padres 1B Yonder Alonso could take batting practice with his teammates sometime during the four-game series that concludes Thursday. ... A sizeable contingent of fans made the 90-minute drive from Morgantown, W.Va., to cheer Gyorko, a native of the city and former star at West Virginia. ... The Pirates honored RHP Tyler Glasnow and OF Andrew Lambo as their minor league player and pitcher of the year. Glasnow was 9-3 with a 2.18 ERA in 24 starts for Class-A West Virginia, and Lambo hit a combined .282 with 32 home runs and 99 RBIs in 120 games with Triple-A Indianapolis and Double-A Altoona. ... Pittsburgh LHP Jeff Locke (10-5, 3.14 ERA) starts Tuesday night against LHP Eric Stults (8-13, 4.03).
James Paxton, Boston Red Sox agree to 1-year, $10 million deal, sources say
Left-hander James Paxton and the Red Sox are in agreement on a one-year, $10 million contract with a two-year club option, sources said.
Raisel Iglesias, Los Angeles Angels agree to four-year deal, source says
Closer Raisel Iglesias and the Angels have agreed to a four-year contract, a source told ESPN's Jeff Passan.
Major League Baseball, players union no closer to deal with collective bargaining agreement set to expire, sources say
Major League Baseball and the players union are no closer to a new collective bargaining agreement with the expiration of the current one looming, sources said.
Baltimore Orioles reach 1-year deal with veteran 2B Rougned Odor
The Baltimore Orioles have agreed to a one-year deal with second baseman Rougned Odor.
Gio Urshela reaches $6.55M deal with New York Yankees; Domingo German agrees to $1.75M
Infielder Gio Urshela agreed to a $6.55 million, one-year contract with the Yankees on Tuesday, while starting pitcher Domingo German agreed to $1.75 million and pitcher Lucas Luetge to $905,000.
Miami Marlins acquire Joey Wendle, send Kameron Misner to Tampa Bay Rays
The Marlins have acquired third baseman Joey Wendle from the Rays for prospect Kameron Misner.