To enable or disable the HTTP/2 protocol in Google Chrome, follow these steps:
- Open the Google Chrome browser.
- In the address bar, type "chrome://flags" and press Enter. This will open the Chrome Experiments page.
- On the Chrome Experiments page, you will see a search bar at the top. Type "HTTP/2" into the search bar to filter the results.
- Look for the "Experimental QUIC protocol" flag. QUIC (Quick UDP Internet Connections) is the underlying transport protocol for HTTP/2 in Chrome.
- To enable HTTP/2, select "Enabled" from the drop-down menu next to the "Experimental QUIC protocol" flag.
- To disable HTTP/2, select "Disabled" from the drop-down menu.
- Chrome will prompt you to restart the browser. Click on the "Relaunch" button to restart Chrome with the new settings.
Once Chrome relaunches, the HTTP/2 protocol will be enabled or disabled based on the flag you have set. Please note that modifying flags in Chrome's experimental settings may have unexpected effects, so proceed with caution.