max number of concurrent file downloads in a browser?

后端 未结 6 1798
甜味超标
甜味超标 2021-01-15 20:15

Two related questions:

  1. What are the maximum number of concurrent files that a web page is allowed to open (e.g., images, css files, etc)? I assume this va

6条回答
  •  日久生厌
    2021-01-15 21:18

    There is nothing in HTTP that limits the number of sessions.

    However, there are configuration items in FF for one, that specifically set how many total sessions and how many sessions to a single server are allowed. Other browsers may also have this feature.

    In addition, a server can limit how many sessions come in totally and from each client IP address.

    So the correct answer is:

    1/ The number is sessions is limited to the minimum of that imposed by the client (browser) and server.

    2/ Because of this, there's no reliable way to query it in JavaScript.

提交回复
热议问题