For six centuries, nearly 500 caves filled with troves of art sat practically untouched along China’s Silk Road. Little known outside China, they contained thousands of Buddhist sculptures and manuscripts and acres of murals.

On May 7, the new exhibit “Cave Temples of Dunhuang” at the Getty Center in Los Angeles will display artworks and...