title: Delphi XE5 iOS TidHTTP.get gets old version of file. Cached perhaps
body: <p>Using Delphi XE5 on iOS.</p>
  
  <p>I am trying to get a simple text file from a server using the following:</p>
  
  <pre><code>filename := DocumentDir + theFile.txt;
  myFile := TFileStream.Create(filename, fmCreate);
  aIDHTTP := TIdHTTP.Create(nil);    
  aIdHTTP.Get('http://www.TheServer.dk/TheDir/theFile', myFile);
  </code></pre>
  
  <p>and populating a ListView later</p>
  
  <pre><code>sl := TStringList.Create;
  sl.loadFromFile(filename, TEncoding.ANSI);
  ListView1.clear;
  for i := 0 to sl.count - 1 do
  begin
    aItem := Listview1.add;
    aItem.text := sl[i];
  end;
  </code></pre>
  
  <p>It actually works fine, but when I change the content of the file on the server, I get the old data in my listview when re-running the code.</p>
  
  <p>Do I need somewhere to clear the cache, if so.. How do I do that?</p>
  
  <p>Thanks in advance for any help.
  Kind Regards
  Jens Fudge</p>