spdy

spdy faster than keep-alive https?

[亡魂溺海] 提交于 2019-12-10 12:16:40
问题 I've seen Is SPDY any different than http multiplexing over keep alive connections and Difference between HTTP pipeling and HTTP multiplexing with SPDY but also http://www.guypo.com/technical/not-as-spdy-as-you-thought/. I've even noticed that both are just a few ms more than ping in my own experience. Am I missing something? I used this to install http://www.howtoforge.com/using-mod_spdy-with-apache2-on-ubuntu-12.10. Is there a setting I missed? 回答1: This question is far too vague to be able

【转】HTTP,HTTP2.0,SPDY,HTTPS你应该知道的一些事

那年仲夏 提交于 2019-12-09 23:45:27
转载地址: http://www.alloyteam.com/2015/03/http2-0-di-qi-miao-ri-chang/ 作为一个经常和web打交道的程序员,了解这些协议是必须的,本文就向大家介绍一下这些协议的区别和基本概念,文中可能不局限于前端知识,还包括一些运维,协议方面的知识,希望能给读者带来一些收获,如有不对之处还请指出。 web始祖HTTP 全称:超文本传输协议(HyperText Transfer Protocol) 伴随着计算机网络和浏览器的诞生,HTTP1.0也随之而来,处于计算机网络中的应用层,HTTP是建立在TCP协议之上,所以HTTP协议的瓶颈及其优化技巧都是基于TCP协议本身的特性,例如tcp建立连接的3次握手和断开连接的4次挥手以及每次建立连接带来的RTT延迟时间。 HTTP与现代化浏览器 早在HTTP建立之初,主要就是为了将超文本标记语言(HTML)文档从Web服务器传送到客户端的浏览器。也是说对于前端来说,我们所写的HTML页面将要放在我们的web服务器上,用户端通过浏览器访问url地址来获取网页的显示内容,但是到了WEB2.0以来,我们的页面变得复杂,不仅仅单纯的是一些简单的文字和图片,同时我们的HTML页面有了CSS,Javascript,来丰富我们的页面展示,当ajax的出现,我们又多了一种向服务器端获取数据的方法

HTTPS、SPDY、HTTP/2 对比

霸气de小男生 提交于 2019-12-09 23:25:05
整理自: A Simple Performance Comparison of HTTPS, SPDY and HTTP/2 Firefox 35,成为第一个默认开启支持 HTTP/2协议 的浏览器。Chrome也支持了,只是以SPDY 4的名义,并且要自己在 about://flags 里面手动开启。 不过HTTP/2规范还没有最终完成,所以Firefox实际上支持的是 HTTP/2第14版草案 ,这个版本的草案离最终发布可能不会有大改动了。Google现在在其服务器上同时支持了HTTP/2的第14草案和 SPDY协议 ,这就给我们了一个基于同一个网页来对比HTTPS, SPDY和 HTTP/2的性能的机会。 HttpWatch 也更新了,从而可以在Firefox里面监控HTTP/2了,它现在有一列专门显示每个请求所使用的协议了: 性能对比 这组性能测试是使用Firefox和HttpWatch,测试页面为 Google英国首页 ,使用了三种协议: 原始的HTTPS SPDY/3.1 HTTP/2 通过在Firefox的 about:config 中启用/禁用下面的功能来切换不同的协议: 每次测试都是基于空缓存的。所以即便这个测试很简单并且只基于一个网站,但其结果还是具有代表性的。 测试#1:请求和响应报头的大小 大部分网站在下载文本内容的时候已经启用了压缩(Gzip)

Website OK on Firefox but not on Safari (kCFErrorDomainCFNetwork error 303) neither Chrome (net::ERR_SPDY_PROTOCOL_ERROR)

。_饼干妹妹 提交于 2019-12-09 18:36:15
问题 Since some days, my website won't load on Safari nor Chrome on Mac OS X (at home nor on my clients computers). It's working well on Firefox (Mac OS & Windows) and IE / Edge, but not Chrome (Windows). It was well working before that and was not updated since weeks. I'm facing this error on Safari Failed to load resource: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 303.) And this one on Chrome Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR It seem's to be related

What happens when a browser that supports SPDY receives an HTTP2 (H2) response?

一曲冷凌霜 提交于 2019-12-07 12:35:35
问题 My gut feeling is that a SPDY-capable browser will treat it as though it were a SPDY response. However, the most I can find is a reassurance that an H2 response will degrade gracefully to HTTP1.1. I'm considering serving assets in an H2 oriented manner (multiple requests, no domain sharding, etc.), but I do need to support some non-H2 browsers (e.g. Android 4.1's browser). Will I be OK if all the clients are at least SPDY compliant? Bonus question: are there any complications involved with

Does SPDY/HTTP2 concatenates responses?

纵饮孤独 提交于 2019-12-07 04:01:17
问题 I have a question about SPDY/HTTP2: Normally you concatenate multiple CSS and JS files into one file to save requests and to get a better performance. I heard that SPDY/HTTP2 combines multiple requests into a single response. Would that mean that I don't need to pre-concatenate CSS and JS files anymore, because this is handled by the protocol? To say it in other words: Can I use <script source="moduleA.js"></script> and <script source="moduleB.js"></script> with SPDY/HTTP2 in the same way as

Detect HTTP2/SPDY Support in Browser

和自甴很熟 提交于 2019-12-06 08:01:06
问题 Is it possible to detect a browser's support for HTTP2/SPDY client-side from within the browser? I am attempting to show users whether their browser supports HTTP2/SPDY or would use the traditional, non-HTTP2/SPDY HTTPs protocol. 回答1: No, not really. At least in a way that is meaningful or actionable. Frontend javascript would be running after the server has already served all of the assets. Everything you want to be doing will be done on the server side. A SPDY compliant browser should

Android4种网络连接方式HttpClient、HttpURLConnection、OKHttp和Volley优缺点

半世苍凉 提交于 2019-12-06 04:11:10
.. 1.HttpClient 优点:apache httpclient高效稳定,有很多API 缺点:由于API太多,很难在不破坏兼容性的情况下对它进行升级和扩展,维护成本高,故android 开发团队不愿意在维护该库而是转投更为轻便的httpurlconnection Apache HttpClient早就不推荐httpclient,5.0之后干脆废弃,后续会删除。6.0删除了HttpClient。Java开发用HttpClient,官方推荐Android开发用HttpUrlConnection。 2.HttpURLConnection 优点:HttpURLConnection是一种多用途、轻量极的HTTP客户端,使用它来进行HTTP操作可以适用于大多数的应用程序。虽然HttpURLConnection的API提供的比较简单,但是同时这也使得我们可以更加容易地去使用和扩展它。比较轻便,灵活,易于扩展。 缺点:在Android 2.2版本之前,HttpURLConnection一直存在着一些令人厌烦的bug。比如说对一个可读的InputStream调用close()方法时,就有可能会导致连接池失效了。那么我们通常的解决办法就是直接禁用掉连接池的功能。 在android 2.2及以下版本中HttpUrlConnection存在着一些bug,所以建议在android 2

What happens when a browser that supports SPDY receives an HTTP2 (H2) response?

被刻印的时光 ゝ 提交于 2019-12-05 18:57:46
My gut feeling is that a SPDY-capable browser will treat it as though it were a SPDY response. However, the most I can find is a reassurance that an H2 response will degrade gracefully to HTTP1.1. I'm considering serving assets in an H2 oriented manner (multiple requests, no domain sharding, etc.), but I do need to support some non-H2 browsers (e.g. Android 4.1's browser). Will I be OK if all the clients are at least SPDY compliant? Bonus question: are there any complications involved with mixing protocols? We're on a web framework that doesn't support H2, but I'm considering serving most of

Does SPDY/HTTP2 concatenates responses?

旧时模样 提交于 2019-12-05 08:13:14
I have a question about SPDY/HTTP2: Normally you concatenate multiple CSS and JS files into one file to save requests and to get a better performance. I heard that SPDY/HTTP2 combines multiple requests into a single response. Would that mean that I don't need to pre-concatenate CSS and JS files anymore, because this is handled by the protocol? To say it in other words: Can I use <script source="moduleA.js"></script> and <script source="moduleB.js"></script> with SPDY/HTTP2 in the same way as I would use <script source="allScripts.js"></script> with HTTP1? Is this the same from a response