javascript - How to force HTTP1.1 in specific AJAX request - Stack Overflow

Background: our server supports both HTTP2 and HTTP1.1 protocols.However, during tests, it appeared t

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. Example of that issue could be also seen here: Slow GCS upload speeds when using HTTP/2

Question: is it possible to force browser to make HTTP/1.1 AJAX request only for certain url/path? Internally we're using Axios ().

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. Example of that issue could be also seen here: Slow GCS upload speeds when using HTTP/2

Question: is it possible to force browser to make HTTP/1.1 AJAX request only for certain url/path? Internally we're using Axios (https://github./axios/axios).

Share Improve this question asked Sep 19, 2018 at 9:32 Antoni OrfinAntoni Orfin 3413 silver badges8 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745343216a4623424.html

相关推荐

  • javascript - How to force HTTP1.1 in specific AJAX request - Stack Overflow

    Background: our server supports both HTTP2 and HTTP1.1 protocols.However, during tests, it appeared t

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信