title: 504 GATEWAY_TIMEOUT in ajax call
body: <p>I have ajax call where I process large data and then reload the page in ajax success. Ajax call is </p>
  
  <pre><code>        $.ajax({
              type:'POST',
              cache:false,
              async:false,
              url: 'URL',
              data: "",
              timeout:0,
              beforeSend:function(msgg){   
                  $('#loading').show();
              },
              success: function(data){
                  if(data == "success")
                  {
                      setTimeout(function(){
                          $('#loading').hide();
                          window.location.reload();
                      },5000);
                  }
              }
          });
  </code></pre>
  
  <p>but it gets 504 GATEWAY_TIMEOUT and ajax call never comes in success. I need manual refresh.</p>