Forum Moderators: phranque

Message Too Old, No Replies

Any advantage activating http2 on apache?

         

born2run

11:06 am on Feb 28, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi so I’ve installed ssl now folks advise me to install http/2 on my apache site.

Is this worth it? Please advise thanks!

Peter_S

11:08 am on Feb 28, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



Yes, it is.

keyplyr

11:14 am on Feb 28, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Some advantages to using HTTP/2 are:

• Single Connection. Only one connection to the server is used to load a website, and that connection remains open as long as the website is open. This reduces the number of round trips needed to set up multiple TCP connections.

• Multiplexing. Multiple requests are allowed at the same time, on the same connection. Previously, with HTTP/1.1, each transfer would have to wait for other transfers to complete.

• Server Push. Additional resources can be sent to a client for future use.

• Prioritization. Requests are assigned dependency levels that the server can use to deliver higher priority resources faster.

• Binary. Makes HTTP/2 easier for a server to parse, more compact and less error-prone. No additional time is wasted translating information from text to binary, which is the computer’s native language.

• Header Compression. HTTP/2 uses HPACK compressions, which reduces overhead. Many headers were sent with the same values in every request in HTTP/1.1

Short answer... your site will load much faster :)

- - -

robzilla

12:47 pm on Feb 28, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Performance-wise, the order tends to be HTTPS (1.1) < HTTP (1.1) < HTTPS (2).

So just enabling HTTPS on HTTP/1.1 slows you down, enabling HTTP/2 speeds you back up... and beyond.

not2easy

2:21 pm on Feb 28, 2018 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You can read more and see a demo of the speed differences on this older post I wanna go fast: HTTP2's massive speed advantage [webmasterworld.com]

keyplyr

4:48 am on Mar 1, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Related links:

What is HTTP/2? [webmasterworld.com]

HTTP/2 Check [tools.keycdn.com]

HTTP/2 FAQ [http2.github.io]

Browsers that support HTTP/2 [caniuse.com]

- - -

born2run

10:34 am on Mar 1, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks as always guys I’ll be enabling http2 with ssl for sure

born2run

11:59 pm on Mar 1, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A question I read browsers won’t use http2 if the url has http instead of https ie ssl. Is this correct?

keyplyr

12:05 am on Mar 2, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...browsers won’t use http2 if the url has http instead of https ie ssl. Is this correct?
@born2run - Yes. Although browsers are *capable* of using HTTP/2 with the HTTP protocol, all the major browsers decided they would not, and only support HTTP/2 over secure pages that use HTTPS.


...I’ll be enabling http2 with ssl for sure
You mean "TLS."
(SSL is no longer used.)

born2run

9:43 am on Mar 2, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



So now with ssl should I have https in the canonical links or http or relative is fine? Thanks!

robzilla

9:55 am on Mar 2, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



HTTPS only. Are you redirecting from HTTP to HTTPS yet?

born2run

1:48 pm on Mar 2, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, I'll be redirecting http to https I'm in the process of setting up the software so been busy.

And so I'll change all canonical links in my html code to https only. Thanks!

born2run

2:18 pm on Mar 2, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



robzilla so the canonical links have to be https and absolute?

robzilla

5:41 pm on Mar 2, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ideally, yes.