Announcing BigPipe support for Drupal 8 in our high performance cPanel cloud hosting plans.
The BigPipe module speeds up page delivery times by sending unchanging parts of a page to the browser immediately while rendering and streaming other, dynamic parts as soon as they are ready. Facebook pioneered the streaming of content in so-called “pagelets”.
How to activate BigPipe
BigPipe is currently supported in our High Performance cPanel and Managed Cloud Hosting plans. Cloud VPS customers could configure BigPipe by implementing these changes to PHP, Apache and Nginx, provided by Jeff Geerling
- Login to cPanel account
- Navigate to Nginx page (at the bottom of the main cPanel page
- Select your domain to modify
- Select PHP as the backend, choose PHP7 or PHP7_LVE for better performance
- Select Drupal 8 with BigPipe configuration template
- Optionally enable PageSpeed to optimise, combine, re-compress and minify images, CSS and JS files
- Click Generate button
- Test BigPipe integration by placing this PHP file in your public_html/ folder and accessing it in the browser:
<?php // Set a valid header so browsers pick it up correctly. header('Content-type: text/html; charset=utf-8'); // Emulate the header BigPipe sends so we can test through Varnish. header('Surrogate-Control: BigPipe/1.0'); ini_set('output_buffering', 'Off'); // Explicitly disable caching so Varnish and other upstreams won't cache. header("Cache-Control: no-cache, must-revalidate"); // Setting this header instructs Nginx to disable fastcgi_buffering and disable // gzip for this request. header('X-Accel-Buffering: no'); $string_length = 32; echo 'Begin test with an ' . $string_length . ' character string...<br />' . "\r\n"; // For 3 seconds, repeat the string. for ($i = 0; $i < 3; $i++) { $string = str_repeat('.', $string_length); echo $string . '<br />' . "\r\n"; echo $i . '<br />' . "\r\n"; flush(); sleep(1); } echo 'End test.<br />' . "\r\n"; ?>
Activate your Drupal 8 BigPipe account in cPanel or Managed Cloud Hosting now!