[HTTP2] HTTP1 probs and HTTP2 saves
1. HOL (HEADS of LINE BLOCKING)
Too many requests in the header tag. Broswer can allow 6 reuqest to be handled simultaneously. And each request and its response make up a round trip. As we all know round trip is bad, it cost time and force use waiting so we want to reduce the round trip as much as possilbe.
2. Uncompressed Headers
Broswer can help to compressed the data when send to the server, but the broswer doesn't compress the HEAD. But usually HEAD are always the same.
And those HEAD takes 800 Bytes. If 100 request then takes 80kb.
But HTTP1 doesn't help with that.
3. Security
HTTP + TLS = HTTPS. HTTP2 require HTTPS by default. So it also need TLS by defualt.
---------------
HTTP2
1. By multiplex :
a system or signal involving simultaneous transmission of several messages along a single channel of communication
Combine multi sinlges into one sinlge. With HTTP2, now we have one connection instead of six.
HTTP2 devid Connection in HTTP1 into multi stream and share one connection. If one stream is blocked, another stream will take over which will be good to take fully used of idel time.
2. HEAD will be compressed. Now HEAD never been sent twice since they are the same, instead, will just send the reference.
If we load the same website on one HTTP1 server and another HTTP2, the difference:
The tab down below is HTTP2 server, as we can see, because of the compression and HEAD and stream solution. HTTP2 is much faster than HTTP1 server.
Beause HTTP2 check the HEAD (caching) more efficient, it turns out not necessary to bunld your css and js files, because you change on single js file, it will force the broswer to redownload the whole bundle.js. But minifiy is still good.
相关文章
- CF1619B Squares and Cubes 题解
- CSS精简工具-CSS remove and combine
- ROS2机器人编程简述humble-第三章-PERCEPTION AND ACTUATION MODELS .1
- ORA-22333: cannot reset type “string”.”string” due to invalid dependent types and tables ORACLE 报错 故障修复 远程处理
- ORA-27474: cannot give both an argument name and an argument position ORACLE 报错 故障修复 远程处理
- ORA-31670: Username argument must be specified and non-null. ORACLE 报错 故障修复 远程处理
- ORA-02783: Both post and wait functions were not specified ORACLE 报错 故障修复 远程处理
- ORA-14068: TABLESPACE and TABLESPACE_NUMBER may not be both specified ORACLE 报错 故障修复 远程处理
- PI Errors and possible solutions详解编程语言
- 25 Essential Linux System Inspection and Analysis Tools(Linux系统检测工具)
- How to Optimize MySQL for High Frequency Read and Write Operations(mysql频繁读写)
- Ultimate Guide to Setting Up and Configuring Linux Named DNS Server!(linuxnamed)
- MySQL中AND的使用方法解析(mysql中and的用法)
- MySQL中的AND逻辑操作符是什么(mysql中and是什么)
- 解决方法MySQL无法连接到指定地址Note from the authorPlease note that this title is not exactly 25 words but it is the most effective and informative title without being too wordy
- and的区别Oracle数据库中的OR与AND的差异(oracle中or和)
- Oracle 数据库中使用AND拼接的威力(oracle中and拼接)