title: Angularjs' $http.get only executed once in IE11
body: <p>I'm learning angularjs, and as a test project I'm polling a server that returns a list of active processes (their pids) and displaying these.</p>
  
  <p>The client code looks like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;script type="text/javascript" src="static/angular/angular.js"&gt;&lt;/script&gt;
      &lt;script&gt;
        function ProcessCtrl($scope, $http, $interval) {
          $scope.ReloadData = function() {
            var result = $http.get("processdata", {timeout:1000});
            result.success(function(data,status,headers,config) {
              $scope.processes = data;
            });
          }
          $scope.ReloadData();
          var stop = $interval(function(){$scope.ReloadData()}, 1000);
        }
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body ng-app&gt;
      &lt;div ng-controller="ProcessCtrl"&gt;
        Processes:
        &lt;ul&gt;
          &lt;li ng-repeat="process in processes"&gt;
            {{process.pid}} is running
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This works in Firefox and Chrome, but not quite in Internet Explorer 11.</p>
  
  <p>All browsers execute the ReloadData method every second, but IE11 doesn't actually fetch the process data from the server. Firefox and Chrome do fetch the data every second. I can see this also in the output from my server, which logs every request.</p>
  
  <p>All three browsers execute the code in <code>result.success</code>, but IE11 keeps reusing the old data it got the first time, where FireFox and Chrome use the newly fetched data.</p>
  
  <p>I've checked the web console in IE11 for warnings or errors, but there are none.</p>
  
  <p><strong>Edit:</strong>
  As the chosen answer suggested it was a caching problem. I have made the server add a 'cache-control' header to the response with the value 'no-cache'. This has solved the problem.</p>