Burnley progressed through to the second round of the Capital One Cup following a comfortable 4-0 win away at York.