Stocks log first weekly loss since early May

? Caution has once again overcome the stock market.

Stocks finished mixed Friday, leaving all the major indexes with their first weekly loss since early May. Tech, financial and retail stocks gained, while utilities and energy stocks were lower.

The Dow Jones industrial average fell 15.87, or 0.2 percent, to 8,539.73, with 16 of the 30 stocks that make up the average posting losses.

The broader Standard & Poor’s 500 index rose 2.86, or 0.3 percent, to 921.23 and the Nasdaq composite index gained 19.75, or 1.1 percent, to 1,827.47.