Internet explorer caches http requests. Instead of manually adding a header to each individual function I want to do something like this
axios.interceptors.request.use((config): AxiosRequestConfig => {
return addNoCachingHeader(config);
});
and
const addNoCachingHeader = (config: AxiosRequestConfig): AxiosRequestConfig => {
return { ...config, headers: { ...config.headers, Pragma: "no-cache"} };
};
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?