How to enable HTTP/2 on an Azure App Service web app

Azure app service uses HTTP/1.1 by default. HTTP/2 brings a number of performance benefits and thankfully switching your app over is easy.

First, open up developer tools and hit your app to see your HTTP/1.1 baseline…

HTTP1

then in the Azure portal navigate to your App Service instance and visit the Configuration page. The HTTP version setting is available on the General settings tab as shown below…

Don’t forget to click Save after making the change. The protocol might not changeover immediately but after a couple of minutes you should see h2 in the Network tab in Chrome/Edge developer tools…

Note… to use HTTP/2 you need to use SSL. Azure has a wildcard certificate bound to *.azurewebsites.net, but if you’re using a custom domain you’ll need to get a cert.

Leave a Reply

Your email address will not be published. Required fields are marked *