title: Angular 4 Reads from cache in IE
body: <p>I am trying to run my front-end on IE 11, well this problem seems to happen only on IE cuz in Chrome I dont have it. anyway I dont want each time to clear my browser cache to read back from DB. I tried to add interpreter: </p>
  
  <pre><code>myModule.config(['$httpProvider', function($httpProvider) {
  if (!$httpProvider.defaults.headers.common) {
      $httpProvider.defaults.headers.common = {};
  }
  $httpProvider.defaults.headers.common["Cache-Control"] = "no-cache";
  $httpProvider.defaults.headers.common.Pragma = "no-cache";
  $httpProvider.defaults.headers.common["If-Modified-Since"] = "0";
  }]);
  </code></pre>
  
  <p>and it didn't work . Beside that I tried to follow the <strong>Injectable</strong></p>
  
  <pre><code> @Injectable()
  export class NoCacheHttp extends Http {
  constructor(backend: XHRBackend, options: RequestOptions) {
      super(backend, options);
  }
  
  get(url: string, options?: RequestOptionsArgs): Observable&lt;Response&gt; {
      //make options object if none.
      if (!options) {
          options = { params: new URLSearchParams() };
      }
      //for each possible params type, append a random number to query to 
   force no browser caching.
      //if string
      if (typeof options.params === 'string') {
          let params = new URLSearchParams(options.params);
          params.set("k", new Date().getTime().toString());
          options.params = params;
  
      //if URLSearchParams
      } else if (options.params instanceof URLSearchParams) {
          let params = &lt;URLSearchParams&gt;options.params;
          params.set("k", new Date().getTime().toString());
  
      //if plain object.
      } else {
          let params = options.params;
          params["k"] = new Date().getTime().toString();
      }
      return super.get(url, options);
   }
  }
  </code></pre>
  
  <p>It's like that I don't know how to add it or it might be not useful.!!!
  <a href="https://stackoverflow.com/questions/37755782/prevent-ie11-caching-get-call-in-angular-2">Prevent IE11 caching GET call in Angular 2</a>
  But I don't know how to register the class or use it "I knew about Angular yesterday"</p>