'Get dynamic json content with file_get_contents() from URL

I want to get dynamic json content with file_get_contents('http://ip-api.com/json/').

If I turn on the VPN and go to URL, I get the dynamic content but If I use the URL in file_get_contents() while VPN is still on, I see the same old content i.e. Changing the location doesn't change the content retrieved by file_get_contents('http://ip-api.com/json/')



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source