title: How do i correctly redirect in Zend Framework 3?
body: <p>I have a controller with the following Code to display a list which can be searched and filtered:</p>
  
  <pre><code>public function listAction() {
  
      if($this-&gt;getRequest()-&gt;isPost()) {
          $post = array_filter($this-&gt;getRequest()-&gt;getPost()-&gt;toArray(), function($value) {
              return ($value !== null &amp;&amp; $value !== false &amp;&amp; $value !== ''); 
          });
          $this-&gt;redirect()-&gt;toRoute('myRoute/list', $post);
      }
      $filter = $this-&gt;params()-&gt;fromRoute();
      // Get correct Data and display as list
  }
  </code></pre>
  
  <p>myRoute:</p>
  
  <pre><code>'myRoute' =&gt; [
              'type' =&gt; Literal::class,
              'options' =&gt; [
                  'route'    =&gt; '/myRoute',
                  'defaults' =&gt; [
                      'controller' =&gt; Controller\MyController::class,
                      'action'     =&gt; 'index',
                  ],
              ],
              'may_terminate' =&gt; false,
              'child_routes' =&gt; [
                  'list' =&gt; [
                      'type' =&gt; Segment::class,
                      'options' =&gt; [
                          'route'    =&gt; '/list[/page/:page][/search/:search][/type/:type]',
                          'defaults' =&gt; [
                              'controller' =&gt; Controller\MyController::class,
                              'action'     =&gt; 'list',
                              'page'       =&gt; 1
                          ],
                      ],
                  ],
  ... other routes
  </code></pre>
  
  <p>The Get-Requests are working correctly and my page loads within a few ms. But when posting data the page loads for ~5 Minutes. After that it will eventually redirect and show the correct page too.</p>
  
  <p>The strange thing is, that the code is working on some machines, but on others the post -> redirect runs for ~5 minutes. The machines have the same OS and browser builds installed.</p>
  
  <p>Am i using the redirect wrongly ?</p>