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.
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
},
}
}
},