In a bar along the Philippines’ Subic Bay owned by an American military veteran, the main topic of conversation is not the upcoming US election despite the Donald Trump coffee mugs, photographs and caps on display.

The talk is of Philippines President Rodrigo Duterte’s tensions with Washington and his courting of China, which is worrying the bar’s mostly American clients who have settled in the vicinity of the huge Subic Bay base, a former US navy installation.

“The biggest fear is that one day he’s going to wake up and say ‘everybody from the US, get out of town’ and we’d have to leave our loved ones behind,” said Jack Walker, a retired Marine sergeant who has lived in Olongapo, the town around the base, for five years.

For more than a century the Philippines and the United States have had a shared history of colonialism, wars, rebellion, aid and deep economic ties. That could change as Duterte’s three-month-old administration re-examines the relationship.

In a series of conflicting statements, Duterte has insulted US President Barack Obama and the US ambassador in Manila for questioning his war on drugs, which has led to the deaths of more than 2,000 suspected users and pushers. He told Obama to “go to hell” and alluded to severing ties with Washington.

About four million people of Philippine ancestry live in the United States, one of its largest minorities, and about 220,000 Americans, many of them military veterans, live in the Philippines. An additional 650,000 visit each year, according to US State Department figures.

According to a Pew Research Centre study last year, the Philippines is the most pro-US country in the world.

Despite the shared history, though, the Philippines has a strong nationalistic movement that has questioned the US alliance. In 1991, the government asked Washington to vacate the Subic Bay naval facility and the nearby Clark Air Base.

But as tensions increased with China over the territorial dispute in the South China Sea, the Philippines signed an Enhanced Defence Cooperation Agreement (EDCA) with the United States in 2014 that grants Washington increased military presence through rotation of ships and aircraft for humanitarian and maritime security operations.

However, Duterte has said that agreement will be reviewed and he insists that the Philippines, the third-largest Asian recipient of American military aid after Pakistan and Afghanistan, can do without assistance.

Philippine government officials have sought to play down Duterte’s comments.

“Where the president is coming from is that he wants to encourage the Filipino people to be more independent,” said government spokesman Ernesto Abella.

“It’s not so much an anti-American relationship as a pro-Philippine sentiment.”

Still, the mood was sombre at Dynamite Dick’s bar in Olongapo.

Edward Pooley, a former Marine colonel who has lived in the Philippines for nearly 30 years, said Duterte’s words were “heartbreaking” but he remained optimistic about the bilateral relationship in the long term.

“We’ve always done a lot of charitable activities and ... we feel the appreciation. Don’t give up on us,” he said.

The mayor of the city of 220,000, Rolen Paulino, said his people were “pro-American” but that he supports Duterte’s shift in foreign policy.

“If the president wants to invite Russia and China ... I will teach my people Russian and Chinese because we have to adapt,” Paulino said.

But many in the business community have labelled Duterte’s rhetoric as largely bluster and take comfort in the fact that he has yet to translate it into action.

The business process outsourcing (BPO) sector - expected to account for 9 per cent of GDP this year - remains largely optimistic about growth in the Philippines.

“Suffice to say, there are questions that are being asked because of (Duterte’s) statements,” said Danilo Reyes, country manager of Genpact, one of the biggest American BPO companies in the country. “But it does not really translate to actions, we continue to expand.”