Announcing HTTP/2 support!

08 Jan 2017
Ori Pekelman
CPO

All the fastness just got faster. A couple of days ago we finished 2016 in beauty, announcing PHP 7.1 which allows you to do some incredibly fast PHP apps with stuff like ReactPHP for example.

Let’s start 2017 with some more fastness juice flowing. HTTP/2 is now supported on all public Platform.sh regions.

What do you need to do to benefit from the incredible performance gains this will give your site?

Nothing. It just works (as long as you have HTTPS enabled, which you should anyway).

What is HTTP/2 ?

HTTP/2 is a replacement for how HTTP is expressed “on the wire.” It is not a ground-up rewrite of the protocol; HTTP methods, status codes and semantics are the same, and it should be possible to use the same APIs as HTTP/1.x (possibly with some small additions) to represent the protocol.

The focus of the protocol is on performance; specifically, end-user perceived latency, network and server resource usage.

(from https://http2.github.io)

Basically it makes any site load faster. Much faster. To see a cute demo of the speed difference, just visit http://www.httpvshttps.com/.

As I said, you don’t need to do anything to benefit from it, it is already active for all clients. But you can play around with specific HTTP/2 features with your preferred framework (look for example at https://www.drupal.org/project/http2_server_push for Drupal Assets Preloading).

Enjoy! 2017 is going to be so fast.