Your CDN lists a Jakarta PoP. When an IndiHome user sends you their response headers, though, the PoP code says Singapore, and their slow requests take far longer than anyone else's. The usual first guess is that the CDN is broken. More often, the CDN made a reasonable decision from bad input, or the traffic took a long path after the CDN chose correctly. This article walks through how to tell which one you are dealing with.
The reason this matters for Indonesian audiences: most last-mile traffic here sits on a small number of operators, and Telkom Indonesia (IndiHome and Telkomsel) holds the largest share of both fixed broadband and mobile. A CDN that serves those users from Singapore over commodity transit, meaning ordinary paid upstream links with no direct peering, will show high tail latency, which is the slow end of the response-time distribution. Even if the median looks fine, every user on that ISP feels the worst requests.
Confirm the PoP from the user's own connection
Start by getting the PoP identifier from a request that actually came from the affected network. A test from your office or your server tells you nothing about IndiHome. Ask the user to run the request from their own connection, or use a test point that you know sits on that ISP.
Each CDN exposes its PoP in a different header. On Cloudflare the cf-ray value ends with an airport-style code, and the /cdn-cgi/trace page prints it as colo. CloudFront sends x-amz-cf-pop. Fastly includes the cache node name in x-served-by. Other providers may need a debug header or request flag, so check their documentation.
# Show PoP-related response headers (run from the affected user's network)
curl -sI https://www.example.com/ | grep -iE 'cf-ray|x-amz-cf-pop|x-served-by|via|server'
# Cloudflare-proxied hostnames only: print the edge location code
curl -s https://www.example.com/cdn-cgi/trace | grep -E 'colo|ip'
If you want more background on reading these codes, see the article on checking PoP location in response headers. The rest of this article assumes you have confirmed a Singapore code from a real IndiHome connection, ideally from more than one user. One user on a VPN or a misconfigured router is a red herring worth ruling out early.
Find out how your CDN picks an edge
This step changes the direction of the whole investigation. CDNs typically choose an edge in one of two ways.
With DNS-based steering, the CDN's authoritative nameserver hands out different IP addresses depending on where it thinks the client is. The DNS answer itself decides the PoP. If that answer is wrong, the user goes to the wrong place.
With anycast, the same IP address is announced from many PoPs, and Internet routing (BGP) decides which PoP receives the packets. The DNS answer is identical everywhere, so the resolver does not matter at all. A Singapore result means the ISP's routes toward that IP prefer a path that ends in Singapore.
Some providers mix both methods, and the behavior can depend on the product or plan. Ask your provider if you are unsure. You can also look for clues: resolve the hostname from a few very different locations or resolvers. Different IP sets suggest DNS-based steering. The same IPs everywhere suggest anycast. In the anycast case, skip ahead to the routing section, because checking resolvers will only waste time.
Identify the resolver the user is really using
For DNS-based steering, the CDN's nameserver never sees the user. It sees the recursive resolver, the server that looks up names on the user's behalf. The CDN guesses the user's location from one of two inputs. The first is the resolver's own egress IP, the address the resolver uses to send queries out. The second is EDNS Client Subnet (ECS), an optional field in which the resolver passes along a truncated version of the client's IP, defined in RFC 7871.
In practice this goes wrong in a few common ways. The user may have switched to a public resolver whose nearest egress is abroad, or one that does not send ECS. Cloudflare's 1.1.1.1 resolver, for example, is documented as not sending ECS. A home router may forward queries somewhere unexpected. Or the ISP resolver's egress IP may be geolocated to the wrong country in the CDN's database.
These read-only checks show what is happening from the user's machine:
# Egress IP of whichever resolver the system is using right now
dig +short whoami.akamai.net
# Via Google Public DNS: shows resolver egress and, if sent, the edns0-client-subnet value
dig +short TXT o-o.myaddr.l.google.com @8.8.8.8
# Compare the CDN's answers through different resolvers
dig +short www.example.com
dig +short www.example.com @8.8.8.8
dig +short www.example.com @1.1.1.1
Look up the owner of the IP returned by whoami.akamai.net with a normal whois query. If it belongs to the ISP, the user is on the ISP resolver. If it belongs to a public DNS operator or some unrelated network, you have found a likely cause. A related point that confuses customers: changing DNS settings on the router does not always change what a phone or laptop uses, because devices can have their own resolver settings or encrypted DNS turned on in the browser. It is worth asking about that directly.
Test the CDN's answer for an IndiHome prefix
Next, ask the CDN's authoritative nameserver directly which edge it would give a client on the affected network. This removes the resolver from the test. Take the user's public IP, reduce it to its /24 prefix (for example, 203.0.113.45 becomes 203.0.113.0/24), and send that prefix as ECS.
# 1. Follow the CNAME chain to the CDN-managed name
dig +short www.example.com
# 2. Find the authoritative nameservers for the CDN zone (replace with the real zone)
dig +short NS cdn-provider-zone.example.net
# 3. Ask one of them directly, passing the client prefix as ECS
dig @ns1.cdn-provider-zone.example.net edge-name.cdn-provider-zone.example.net +subnet=203.0.113.0/24 +norecurse
# 4. Pin a returned IP and check which PoP actually serves it
curl -sI --resolve www.example.com:443:198.51.100.10 https://www.example.com/ | grep -iE 'cf-ray|x-amz-cf-pop|x-served-by'
The placeholder names and documentation IPs above need to be replaced with your real values. Also note that some CDN nameservers ignore an ECS option sent by an arbitrary client, so step 3 may not reflect what a real ISP resolver receives. If the answer does not change regardless of the subnet you send, that is a possible reason.
Read the results as follows. If the authoritative returns a Jakarta edge for the IndiHome prefix, but the user's resolver path returns Singapore IPs, the problem is on the DNS side. Either the resolver sends no ECS and its egress IP is mapped abroad, or the user is not on the resolver you assumed. If the authoritative returns Singapore even for the IndiHome prefix, the CDN's own mapping prefers Singapore for that network. That is a question for the CDN provider, possibly a geo-IP or capacity decision on their side.
Step 4 separates the last case. If you pin a Jakarta edge IP with --resolve and the header still shows a Singapore code, the IP is probably anycast, or the provider routes it internally through Singapore. At that point DNS is no longer the suspect.
When DNS is correct and traffic still leaves the country
If the user resolves a domestic edge IP but the PoP header or the latency says Singapore, look at the network path. Run mtr or a traceroute from the affected connection to that edge IP, and watch where the round-trip time jumps and which networks the hops belong to. A path that leaves Indonesia and comes back usually means there is no direct peering or local interconnect between the ISP and the CDN's Jakarta presence, so traffic goes the long way through transit. Tracing the path with mtr covers how to read that output.
You cannot fix routing from the website side. You can, however, write an escalation that a CDN or ISP network team can act on. Include the PoP header from a real affected request, the resolver egress IP, the edge IP that was resolved, the client /24 prefix, and the mtr output, all captured at the same time. Without those details, a report of "slow from IndiHome" is hard for anyone to investigate.
The practical order is short. Confirm the PoP from a real affected connection. Find out whether your CDN steers by DNS or by anycast. If it uses DNS, compare the resolver egress IP, the ECS behavior, and the authoritative answer for the client prefix. If DNS already points to Jakarta, stop changing DNS settings and follow the route. Each step rules out one layer, and by the end you know whether the user, the resolver, the CDN mapping, or the upstream path sent the traffic abroad.