The Nasdaq Composite and the S&P 500 hit all-time peaks as technology stocks rallied on Friday, whil