Fleetwood manager Micky Mellon was over the moon with how his side responded to an early onslaught from York to seal a 2-0 win at Bootham Crescent.
Goals from Junior Brown and a late strike from Steven Gillespie were enough to seal three points and keep the Cod Army in the promotion places.
But Mellon admitted: "York never seem to disappoint us. We knew it was always going to be a very difficult game."
He continued: "They came out of the traps very well but we defended well and my goalkeeper has made a couple of great saves.
"You expect that when you come to York though, and you would expect that if you came to Fleetwood. We rode that out and then scored a fantastic goal.
"I'm delighted with the overall performance from my team because it's a hard place to come. We hit the post and we had a couple of one-on-ones which we may have done better with but I can't complain with the result here at all."
York manager Gary Mills was left frustrated after his side failed to capitalise on their first-half chances.
He said: "That's football, it's about putting the ball in the back of the net. I thought first half was some of the best football we've played all season, certainly the first half hour.
"We've conceded a goal, we've come out second half but we never seemed to get going.
"We've now got to start the same on Saturday but put the ball in the back of the net.