title: How do I resend a failed ajax request?
body: <p>I have multiple ajax requests some request data every minute others are initiated by the user through a ui.</p>
  
  <pre><code>$.get('/myurl', data).done(function( data ){
     // do stuff..
  });
  </code></pre>
  
  <p>The request might fail due to an authentication failure.
  I've setup a global <code>.ajaxError()</code> method for catching any failed requests.</p>
  
  <pre><code>$(document).ajaxError(function( e, jqxhr ){
     // Correct error..
  });
  </code></pre>
  
  <p>After I catch the error I reset authorization.
  Resetting the authorization works but the user has to manually re initiate the ajax call (through the ui).</p>
  
  <p>How do I resend the failed request using the jqxhr originally sent?</p>
  
  <p>(I'm using jQuery for the ajax)</p>