LONDON—Fastly, the company hit by a major outage that caused many of the world’s top websites to go offline briefly this week, blamed the problem on a software bug that was triggered when a customer changed a setting. The problem at Fastly meant internet users couldn’t connect to a host of popular websites early Tuesday…