Is there a command or a service that will tell me whether my websites are being served over HTTP or HTTP/2.
I found this tool: HTTP/2 Test | A simple HTTP/2.0 test tool, but it only tells me whether my website supports HTTP/2, but not whether it is already using HTTP/2.
These is also this Chrome Extension: HTTP/2 and SPDY indicator, which tells me that HTTP/2 is already enabled on my site, but as far as I know my version of Apache doesn't even support it.
Is there any way to know for sure? Thanks!
In Chrome, click the icon of three horizontal lines and choose "Settings" from the menu. Click "Show Advanced Settings." Under Network, click "Change Proxy settings" and select the "Advanced" tab. Look under the Security heading for the list of accepted protocols.
In Google Chrome and Brave, you can easily use the Developer tools (F12 or Command + Option + I ). Open the Network tab, find the request, click the Header tab, scroll down to "Response Headers", and click view source . It should show the HTTP version in the first line.
To speed up web performance, both HTTP/1.1 and HTTP/2 compress HTTP messages to make them smaller. However, HTTP/2 uses a more advanced compression method called HPACK that eliminates redundant information in HTTP header packets. This eliminates a few bytes from every HTTP packet.
In the menu, click Settings > Active Profile > Web (Protocol Level). HTTP/2 is disabled by default. To enable it, set the Preferred HTTP version to HTTP/2 . Note: Make sure you select a Browser that supports HTTP/2.
Apache doesn't have to support it. The Chrome extension reads the HTTP headers to determine that.
Another method is simply to look at the network tab > headers > response headers > view source in Chrome or Firefox. There the headers can be seen. It should read "HTTP/2" or some sort I can't recall right now.
Easiest: You can use curl -I <your site>
which will put the HTTP response as the first line.
HTTP/2.0 200 server:nginx date:Fri, 29 Apr 2016 14:31:40 GMT content-type:text/html; charset=utf-8 content-length:7629 last-modified:Thu, 07 Apr 2016 02:41:08 GMT ....
Here's another method that may be easier, if you don't have ready access to command-line and cURL, or you're navigating several layers of CDN (e.g. if your HTTP/2 is being provided by a provider like CloudFlare).
If you see h2
, then congratulations! Your website is being served over HTTP/2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With