Reputation: 101
I setup a basic test page which displays the same image from three sources: origin server, s3 server and cloudfront server: http://ocp.mofarchive.com/index.html
Then I run tests using webpagetest.org from various locations. Unfortunately image that should be hosted in closest edge server is donwloaded from Amazon's Seattle server all the time.
I'm seeing the correct image and test result says that CDN usage is OK so I couldn't figure out how I can make the edge locations work.
Upvotes: 2
Views: 1341
Reputation: 2653
I was experiencing the same problem. I was using wget to download from my cloudfront distribution and then used an ip lookup on the ip address from the response. The first ip lookup site I used always said the ip address was from Seattle. Echoing the above answer, I found some different ip lookup sites that listed the actual physical location of the download.
The https://www.iplocation.net/ site shows results from several different ip lookup services. Here you can see some say the ip address is from Amazon HQ while others show the actual edge location being used.
Upvotes: 0
Reputation: 131
This is likely explain here: https://forums.aws.amazon.com/thread.jspa?messageID=195458𯮂
In short, the online tools are probably using the geoip lookup and relying on the whois information (which is showing where the HQ of the company is, rather than the physical location of where the IPs are being used).
Upvotes: 1