1、WEB?tu.32 实践驱动的IT教育斯这克学院(StuQ),极窑邦旗下实践驱动的盯教育平台。通过线下和线上多种形式的综合学习解决方案F帮助IT从业者和研发团队提升技能水平。10大职业技术领域课程http:/www.stuq.org?2011?2011-20152015-NOW?STGW/?CLB?Web?WEB?WEB?HTTP2?EFI?1?.?L?.?/?2?H?HC?H?LH?H?1?.?.?/?2?H?HC?H?LH?H?HTTP1.1?1500B ASCII?245=?33?21?22?.=?245=?33?21?22?.=?245=?33?21?22?.=?HTTP1.1?-?p
2、ipelining?WEB?CSS Sprites data uri,Inline Images?.?1?333?.?.?2?.?1?333?.?.?2?.?1?333?.?.?2?4?5?.?HTTPS/HTTP2?HTTP1.1?HTTPS?46%?HTTPS HTTP2?2015.5?2017.05?13.7%?+?+server push HTTP1.1?HTTP vs HTTPS?HTTP1.1?HTTPS?K?0+?0+?L?N?S?2?D?H1?H1?2?A?P?+?O?3?A?C?+?.?/?1?+?.?+?HTTPS?HTTP?7?RTT 500ms?50ms?15ms?RT
3、T?0100200300400?:msWIFI4G3G2GHTTPS=HTTP+SLOW?Why Slow?-?10000?-Chrome Remote debug-Linux traffic control-performance timing apiWhy Slow?-?RTT?session?-?G?C?Why Slow?itemstart_load css_load js_load dom_ready active req_timetcp_reuse70571915418582120147TLSv1.2966982198211322591165tcp_first_use14221430
4、285616183594138ecdhe-rsa-aes128-gcm-sha256975994197311402568163android_wifi_spdy_tcp_first_use15741594292417723618147android5_tcp_first_use(http)999104620481217246186ios8_tcp_reuse(http)349382737441893100?X5?4G?HTTP2?TLS1.2?ECDHE?tls session?WEB?TCP?TLS?HTTP2?CDN?TCP?TFO(tcp fast open)80?487ms-390ms
5、iOS9+,kernel v3.7+?3-10 BBR?TFO?2?+?+?+?+?2?+?2?2?TLS?session resumptionSession idSession ticketClientHello Session IDSession Cache?ID?Sessoin ticketClientHello?Session ticket?iOS Qzone SSL?200ms-100ms?50%iOS?TLS?-False Start?Perfect Forward SecretECDHE?DHE?False StartSSL?30%TLS?-OCSP StaplingOCSPOC
6、SP Stapling?7?TLS?-dynamic record size?-record?TLS?-ssl_buffer_size 4k-patchTLS head of line blockingTLS1.3?-0RTT HandshakeTLS1.3?Openssl 1.1.1?Nginx 1.13.0?draft 20TLS1.3 1RTT full handshakeTLS 0RTTPreshared Key?HTTPS?-HSTS?302?HTTP Strict