title: Yii2: Pjax: (FF) Problem that first reload don't work; second reload work (Chrome) nothing work
body: <p>I use the following code with yii2 and pjax in the view:</p>
  <pre><code>                        &lt;?php Pjax::begin([ 'id' =&gt; 'pjax-messages', 'timeout' =&gt; false, ]); ?&gt; 
                          &lt;?php foreach ($messages as $message) { ?&gt;
                          &lt;li class=&quot;&lt;?= ($message-&gt;created_by != '') ? 'right' : 'left' ?&gt; clearfix&quot;&gt;
                              &lt;span class=&quot;chat-img pull-right&quot;&gt;                      
                              &lt;/span&gt;
                              &lt;div class=&quot;chat-body clearfix&quot;&gt;
                                  &lt;div class=&quot;header&quot;&gt;
                                      &lt;strong class=&quot;primary-font&quot;&gt;&lt;?= $message-&gt;person_name ?&gt;&lt;/strong&gt;
                                      &lt;small class=&quot;pull-right text-muted&quot;&gt;&lt;i class=&quot;fa fa-clock-o&quot;&gt;&lt;/i&gt; &lt;?= \yii::$app-&gt;formatter-&gt;asRelativeTime($message-&gt;created_at) . ' (' . \yii::$app-&gt;formatter-&gt;asDate($message-&gt;created_at) . ')' ?&gt;&lt;/small&gt;
                                  &lt;/div&gt;
                                  &lt;p&gt;
                                      &lt;?= $message-&gt;message ?&gt;
                                  &lt;/p&gt;
                              &lt;/div&gt;
                          &lt;/li&gt;                            
  
                          &lt;?php
                      }
                      ?&gt;`
  </code></pre>
  <p>I try to reload the pjax container with this js code:</p>
  <pre><code>$(document).on('click', '.friend', function (e) {
  
      // swap focus
      $(this).parent().find('li').removeClass('active');
      $(this).addClass('active');
      
      $.pjax.reload({
          container: &quot;#pjax-messages&quot;,
          url: '/inquiry-finance/update?id=' 
                  + $('#inquiryfinance-id').val()
                  + '&amp;tbl_inquiry_finance_member_id=' 
                  + $(this).data('tbl_inquiry_finance_member_id'),
          timeout: false,
      });
  
  });
  </code></pre>
  <p>Controller is this:</p>
  <pre><code>public function actionUpdate($id, $tbl_inquiry_finance_member_id = null) {
  
      $model = $this-&gt;findModel($id);
  
      $searchModel = new \app\models\FileHasInquiryFinanceSearch();
      $dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
  
      $providerInquiryFinanceHasCapTypes = new \yii\data\ArrayDataProvider([
          'allModels' =&gt; isset($model-&gt;inquiryFinanceHasCapTypes) ? $model-&gt;inquiryFinanceHasCapTypes : null,
      ]);
  
      $providerInquiryFinanceHasDocument = new \yii\data\ArrayDataProvider([
          'allModels' =&gt; isset($model-&gt;inquiryFinanceHasDocuments) ? $model-&gt;inquiryFinanceHasDocuments : null,
          'pagination' =&gt; [
              'pageSize' =&gt; 200,
          ],
      ]);
  
      $providerInquiryFinancePersonNotification = new \yii\data\ArrayDataProvider([
          'allModels' =&gt; isset($model-&gt;tblPerson-&gt;personNotifications) ? $model-&gt;tblPerson-&gt;personNotifications : null,
      ]);
  
      if ($model-&gt;loadAll(Yii::$app-&gt;request-&gt;post()) &amp;&amp; $model-&gt;validate() &amp;&amp; $model-&gt;saveAll([
                  'emailHasInquiryFinances',
                  'fileHasInquiryFinances',
                  'tblCompany',
                  'tblPerson',
                  'tblProject',
                  'tblInquiryFinanceDocumentListGroup',
                  'tblLanguage',
                  'tblBasicCurrency',
                  'inquiryFinanceHasCapTypes',
                  'inquiryFinanceHasDocuments',
                  'inquiryFinanceMessages',
                  'personNotifications',
                  ])) {return $this-\&gt;redirect(\['update', 'id' =\&gt; $model-\&gt;id\]);
  
                  } else {
  
          // prepare message for inital request
          if (!$tbl_inquiry_finance_member_id)
              $tbl_inquiry_finance_member_id = $model-&gt;inquiryFinanceMembers[0];
  
          $messages = \app\models\InquiryFinanceMessage::find()
                  -&gt;andWhere(['tbl_inquiry_finance_member_id' =&gt; $tbl_inquiry_finance_member_id])
                  -&gt;all();
  
          return $this-&gt;render('update', [
                      'model' =&gt; $model,
                      'providerInquiryFinanceHasDocument' =&gt; $providerInquiryFinanceHasDocument,
                      'providerInquiryFinancePersonNotification' =&gt; $providerInquiryFinancePersonNotification,
                      'providerInquiryFinanceHasCapTypes' =&gt; $providerInquiryFinanceHasCapTypes,
                      'searchModel' =&gt; $searchModel,
                      'dataProvider' =&gt; $dataProvider,
                      'messages' =&gt; $messages,
          ]);
      }
  }
  </code></pre>
  <p>In Firefox, the first reload is fired but create no response according to firefox debuging tool. If I fire the js script again, it works! I've realized, that the time for request and wait shows: 0 after the first try, the second shows wait: 250m</p>
  <p>In Chrome the request is marked as red in the list, response shows nothing, also if I try to fire again the request.</p>
  <p>Any Ideas?</p>
  <p>Thanks a lot for any help!
  Toby</p>
  <p>I've tried to set timeout to false, enablePushState to false - no chance to get it work.</p>