cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone running M1 or M2 with HTTP/2?

Anyone running M1 or M2 with HTTP/2?

Given the nature of H2 and Magento, it seems like there should be a significant performance gain?

Has anyone investigated this?

Steven Antonucci
LiteSpeed Technologies
5 REPLIES 5

Re: Anyone running M1 or M2 with HTTP/2?

Perhaps the biggest benefit of HTTP/2 is that you really don't need JS / CSS merging anymore because of HTTP pushes and multiplexes. The reason why it's good is how browsers handle scripts: whenever there's a fatal error the rest of the file will be effectively ignored. This is a big problem when several files are merged into a single bundle: should one of the first scripts fail, the rest of (otherwise totally OK) scripts will be affected too. 

Tanel Raja

Re: Anyone running M1 or M2 with HTTP/2?

We have implemented HTTP/2  as a trial for one of our projects. Below are the observations.

1. The response is compressed (Gzip) by default, no need to do it explicitly.
2. Server Push is happening with this extension. We installed this extension for Magento 2 - https://github.com/yireo/Yireo_ServerPush
3. We observed that asynchronous calls are happening but need more observation on this to confirm.
4. Not able to push JS files which are loading through require.js ( The extension is not supporting it yet, we are trying to investigate it )

Re: Anyone running M1 or M2 with HTTP/2?

Yes, both Magento 1 (M1) and Magento 2 (M2) support HTTP/2. Enabling HTTP/2 with Magento can result in significant performance gains due to its features like multiplexing and header compression. Many users have reported improved loading speed and user experience after implementing HTTP/2. Ensure your server infrastructure supports HTTP/2 with an SSL certificate and compatible web server.

Re: Anyone running M1 or M2 with HTTP/2?

Hi there,

I’ve been using HTTP/2 with both Magento 1 and Magento 2, and it’s definitely a game-changer in terms of speed and overall performance. With HTTP/2, the way requests are multiplexed and prioritized can significantly improve load times, especially for websites with a lot of assets.

For Magento 2, I haven’t encountered major compatibility issues, but it’s essential to ensure your server setup is configured correctly. HTTP/2 relies on SSL/TLS, so you’ll need an HTTPS setup to take full advantage of it. On Magento 1, there are some workarounds and tools available to make HTTP/2 work, though I’d recommend updating to Magento 2 if you’re looking for more seamless performance improvements.

If anyone’s looking for detailed steps on how to configure HTTP/2 with either Magento version, I’d be happy to share my setup or troubleshoot any specific issues.

Re: Anyone running M1 or M2 with HTTP/2?

If the issue still persists, then try the following:

  • Double-check your server configuration to ensure HTTP/2 is properly enabled. Tools like online HTTP/2 validators can help confirm this.
  • Verify your SSL/TLS setup and liho make sure your certificates are up-to-date and configured correctly.
  • For Magento 1 users, consider exploring plugins or extensions that optimize HTTP/2 support.