Jake Marisnick broke the streak with a double to start the third inning.
"I didn't realize it when it was going on," Cashner said about his streak. "But I thought I had a good fastball. This is a team that either hits home runs or strikes out. They're a good mistake-hitting team. They hit both of my mistakes today."
One of the mistakes Cashner made was allowing a two-run home run to Rasmus in the fourth inning.
"That was a dumb pitch," Cashner said.
Cashner finished with 10 strikeouts over seven innings, allowing three runs (two earned) in the Padres' 7-2 loss to the Astros.
Cashner also made big league history, as he now has made 21 consecutive starts at home with two or fewer earned runs allowed. Orel Hershiser (Dodgers) and Jose Fernandez (Marlins) had 20-game streaks, and Fernandez's is still active.
Cashner's record is 1-4 but he lowered his ERA to 2.61. Manager Bud Black liked a lot of what he saw from his starting pitcher Wednesday.
"Good slider today ... he got a lot of punchouts on the slider. One walk, 10 strikeouts is pretty good for a starting pitcher," Black said. "Cash was mixing pitches today; fastball, slider, change. Got a number of strikeouts with the change today."
Corey Brock is a reporter for MLB.com. Keep track of @FollowThePadres on Twitter. This story was not subject to the approval of Major League Baseball or its clubs.