2500 yards was my average, and is actually short. The Pattern 1914 long range sight ("volley sight" or "dial sight") went to 2600 yards; the second sight for the M1903 Springfield went to 2800. How often rifles were actually fired in combat at such ranges, in volleys or not, I don't know (movies don't count), but it seems that the military at least wanted long range capability.
The machinegun, of course, made volley fire obsolete. A few machineguns would put out more firepower faster than a body of infantry with rifles, and indirect fire was soon taken over by new field guns. By WWII, there was not much need or desire for long range rifle fire and new rifle sights were once again made for shooting at visible targets.