title: How to add an interceptor to each request to keep ie from caching requests
body: <p>Internet explorer caches http requests. Instead of manually adding a header to each individual function I want to do something like this </p>
  
  <pre><code>axios.interceptors.request.use((config): AxiosRequestConfig =&gt; {
  return addNoCachingHeader(config);
    });
  </code></pre>
  
  <p>and </p>
  
  <pre><code>const addNoCachingHeader = (config: AxiosRequestConfig): AxiosRequestConfig =&gt; {
    return { ...config, headers: { ...config.headers, Pragma: "no-cache"} };
  };
  </code></pre>
  
  <p>is there a simple way to keep IE from caching requests without going back through my whole app and adding headers to each individual request?</p>