FedEx Corp. said it would start offering Sunday deliveries to most U.S. homes, the latest sign that the U.S.’s online shopping habits are pressuring companies to revamp their operations to fulfill orders almost as fast as they are placed.

With people ordering everything from saunas to sandwiches online and expecting to have them quickly appear at the door, retailers and carriers are racing to adapt to service the so-called last mile.

...