how to use HTTP/2 protocol for O365 CDN Traffic?
Even though the O365 CDN support HTTP/2 protocol, i couldnt see anywhere in SPFx or any setting where we can "request" content via HTTP/2 protocol. https://developer.microsoft.com/en-us/office/blogs/general-availability-of-office-365-cdn/
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: fb134fd8-6880-360a-faea-7eb0eedca2d9
- Version Independent ID: 16f799b7-deff-b125-ceed-343933bcbe79
- Content: Use the site collection app catalog
- Content Source: docs/general-development/site-collection-app-catalog.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
You cannot force to use HTTP/2 because this is something the browser and the server handles.
If you browser is capable of HTTP/2 this does not mean that the traffic use HTTP/2 when the server does not support it. On the other hand when your browser does not support HTTP/2 but your server does you cannot force to everything transferred via HTTP/2.
This basically mean that you cannot "Request" HTTP/2 your browser have to request. You see this in only in the network trace of you browser.
This for example shows the traffic and protocols used to a communication site in SharePoint. More on that: https://ma.ttias.be/view-http-spdy-http2-protocol-google-chrome/
It can even happen that you see assets requested via HTTP/1.1 in there.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues