Am I truly using http2?

549 views Asked by At

I have never setup http2 but I think cloudflare serve request as http2. However, when I see dev tool water fall it looks like http1. Because of the when I just test with http2 testing site it show I am serving http2.

enter image description here

As you see it kinda fetching 5 or 6 at a time.

Do I need to setup ngnix http2 instead of relying on cloudflare ? I also added webpack optimization option to allow more requests.

optimization: {
    splitChunks: {
      maxAsyncRequests: 20,
      maxInitialRequests: 20,
      minChunks: 2,
      chunks: 'all',
      cacheGroups: {
        styles: {
          name: 'styles',
          test: /\.css$/,
          chunks: 'all',
          enforce: true
        },
      }
    }
  },
1

There are 1 answers

4
Barry Pollard On

Looks like the main... is calling the later scripts, so presumably the browser doesn’t think it needs to load more than the 5 or 6 resources at a time.

HTTP/2 doesn’t magically fix all performance issues with a site - often there are other limitations on a site, and these may be bigger than the issues with HTTP/1 that HTTP/2 is designed to address.