WebClient().DownloadString() returning old data [duplicate]
问题 This question already has answers here : C# WebClient disable cache (12 answers) Closed 4 years ago . I am using this code to get the return string from URL webClient.Encoding = Encoding.UTF8; response = webClient.DownloadString("http://somesite.com/code.php"); Console.Write(response); the code.php looks like this <?php $data = file_get_contents('code.txt'); echo $data; ?> The problem is when I change the contents of the code.txt file, the webClient.DownloadString() method returns the old