How to force HTTP/1.1 in specific AJAX request

后端 未结 1 1585
死守一世寂寞
死守一世寂寞 2021-01-14 05:12

Background: our server supports both HTTP/2 and HTTP/1.1 protocols.

However, during tests, it appeared that HTTP/1.1 is much faster for files upload

相关标签:
1条回答
  • 2021-01-14 05:15

    No this is not possible. HTTP/2 is a connection level setting that is negotiated by the browser as part of the HTTPS set up and cannot be overridden for certain AJAX calls nor set for particular paths.

    The only way this would be possible would be to host this on a separate domain with a separate HTTPS certificate.

    0 讨论(0)
提交回复
热议问题