Anyone running HTTP/2?

Anyone running HTTP/2?

by Rex Lorenzo -
Number of replies: 7

Google recently released a tool to analyze a site and give performance suggestions: https://web.dev/

One of the biggest suggestions is to enable HTTP/2.

I found an old discussion about Moodle supporting it at https://moodle.org/mod/forum/discuss.php?d=283202, but couldn't find anything newer.

Is anyone running Moodle 3.4+ with HTTP/2? Any problems that we should be aware of before trying it out on our end?

If you are running it, do you see any tangible performance improvements?

Average of ratings: -
In reply to Rex Lorenzo

Re: Anyone running HTTP/2?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It's Google's "thing" is it not?

I suppose they would say that. 

Maybe I move in the wrong circles, but I hear so little about it that I wonder if anybody is really interested. 

Average of ratings: Useful (1)
In reply to Howard Miller

Re: Anyone running HTTP/2?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Google has hijacked the web technology a long time ago.
sad
In reply to Visvanath Ratnaweera

Re: Anyone running HTTP/2?

by Albert Ramsbottom -

Just ignore anything google has too say and you should be alright

In fact do the complete opposite to what google has too say


smile


In reply to Albert Ramsbottom

Google rulez! [OT]

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
You are joking. Google rulez!
sad

Just one specific example from the recent pass. We had (still only partly solved) major problem entering our credentials to a firewall from within the institution. For an unknown reason, this firewall sends an invalid certificate to clients in some networks. (Don't ask me why. I fear, even the network Tarzans don't know why.) Still could get the log-in form after I accepted the invalid cert. One fine day, Chrome (Goodle) said, No, Niente, Nada, sending us running for alternatives.
In reply to Rex Lorenzo

Re: Anyone running HTTP/2?

by Mathew Gancarz -
Picture of Core developers

I haven't tried it, but it looks like there is some plans to tweak Moodle to take advantage of some of it's features: https://tracker.moodle.org/browse/MDL-52751

As far as I understand it, because it's fully backwards compatible, you could turn on HTTP/2 at the web server level (Apache or Nginx or whatever) and things should continue working as they normally do. The modern browsers that are capable of HTTP/2 will just continue running as before and if most of your users are using an HTTP/2 capable browser, you just start optimizing for it (in Moodle code or other) rather than the previous version. For example, Wordpress has plugins you can add that may make make the user experience a bit faster by pre-loading scripts/styles: https://wordpress.org/plugins/http2-server-push/

It won't give a free speedup though I think, the website has to be optimized for it's use before it helps.. but again, I haven't tested it. 

Also, it's not just a Google thing. Google started the initiative but it's been standardised over 3 years ago now by the IETF. All recent browsers support it, other than Internet Explorer 11 on Windows 7. See https://caniuse.com/#feat=http2

For those of us that only serve up Moodle, I think there would be no benefit right now until wee see Moodle's code take advantage of it, but I am curious also if anyone has done tests to see if the multiplexing built into HTTP/2 speeds things up in Moodle without any code tweaks.

Average of ratings: Useful (1)
In reply to Mathew Gancarz

Re: Anyone running HTTP/2?

by Mathew Gancarz -
Picture of Core developers

Looking also at our own Moodle site, some things on it that aren't directly hosted by us are already using HTTP/2. For example: Gravatar images, Mathjax javascript code (uses a Cloudflare CDN which uses HTTP/2), Google analytics code.


Looking at Moodle.org, actually it's all getting served over HTTP/2 and SPDY. Anyone from Moodle.org have any data on whether you got a speed up on using HTTP/2?

In reply to Mathew Gancarz

Re: Anyone running HTTP/2?

by Rex Lorenzo -

I was hoping it would be a free speed increase.

Just wondering if anyone else did the work of benchmarking.