The win allowed Cavendish to regain the points leader's green jersey, while Rinaldo Nocentini retained the race leader's yellow jersey.
Bradley Wiggins moved back up to fifth after a ruling that he had finished 15 seconds adrift of the peloton following a crash on Tuesday was overturned.