I made an application using ajax in some points, and I figured out that it wasn't working on IE and EDGE. On the examples bellow, I'm trying to generate a PDF from one html page. Here's my code
$(document).ready(function() {
  try {
  var url_string = window.location.href;
  var url = new URL(url_string);
  var token = url.searchParams.get("token");
  if (url_string.includes('/quiz/show_report')) {
    $.ajax({
      cache: false,
      type: "POST",
      url: '/chart.js?token=' + token
    });
  }
 } catch (e) {}
});
on the document, I'm calling
$.ajax({
  cache: false,
  type: "POST",
  url: '/download_pdf?token=' + token,
  data: {
    natural_chart: $('#natural-chart').attr('data-image'),
    humanities_chart: $('#humanities-chart').attr('data-image'),
    language_codes_chart: $('#language-codes-chart').attr('data-image'),
    mathematics_technology_chart: $('#mathematics-technology-chart').attr('data-image')
  }
}).success(function(e) {
  window.location = '/download?token=' + token;
});
What I tryed: Using cache false Forcing ie compatibility mode with that metatag:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
and that:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
and all that other compatible meta tags. I Tryed also that ones
<meta content="no-cache" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="Pragma">
We updated the jquery version to the newer one (3.2.1),
Anyone has any idea what I might do to fix it?
Thank you in advance