http2

HTTP2 Push XMLHttpRequest Cache Miss in Chrome

北城以北 提交于 2019-12-01 22:57:54
I'm setting the Link header to preload an XHR request that happens on load. Link: </images/project_icon.png>; rel=preload; as=image,</db/xhr_stuff>; rel=preload Chrome 57.0 preloads and uses the /images/project_icon.png just fine but it preloads /db/xhr_stuff and then misses the copy it just retrieved and loads it a second time after the DOM completely loads. The request headers are identical except the one later one initiated by the xhr has x-requested-with:XMLHttpRequest set. The only other difference between the requests is the one initiated by the link header shows up as Type: json and the

Can I implements http/2 server without ALPN support?

女生的网名这么多〃 提交于 2019-12-01 22:16:58
In this way, the client can connect the server without ALPN and use http/2 default. Is that possible? Yes it is possible, but the conditions are strict. Browsers, as of now, do not implement clear-text communication for HTTP/2, so if you use a browser the answer to your question is no: you have to deploy your server with ALPN support if you want browsers to be able to connect. On the other hand, other clients such as Java clients may be able to connect to a server using clear-text HTTP/2, so for those type of clients the answer to your question is yes: you can deploy a HTTP/2 server without

Jetty HTTP2 server push support

ε祈祈猫儿з 提交于 2019-12-01 21:33:35
问题 for SPDY, we need to implement a PushStrategy and to register it to push resources. What about HTTP2 support? I like the idea of nginx which consists to read link header in the HTTP response: https://nghttp2.org/blog/2015/02/10/nghttp2-dot-org-enabled-http2-server-push/ Thanks! 回答1: Jetty HTTP/2 comes with full support for HTTP/2 Push, in fact in different flavors. Webtide's website already has Jetty's HTTP/2 Push enabled. There is a PushCacheFilter, which implements the same algorithm that

Jetty HTTP2 server push support

穿精又带淫゛_ 提交于 2019-12-01 20:08:23
for SPDY, we need to implement a PushStrategy and to register it to push resources. What about HTTP2 support? I like the idea of nginx which consists to read link header in the HTTP response: https://nghttp2.org/blog/2015/02/10/nghttp2-dot-org-enabled-http2-server-push/ Thanks! Jetty HTTP/2 comes with full support for HTTP/2 Push, in fact in different flavors. Webtide's website already has Jetty's HTTP/2 Push enabled. There is a PushCacheFilter , which implements the same algorithm that was implemented in Jetty SPDY's PushStrategy, based on the Referer header. There is a PushSessionCacheFilter

HTTP/2 behind reverse proxy

别说谁变了你拦得住时间么 提交于 2019-12-01 09:33:52
So far all the tutorials tell me that I need to enable SSL on my server to have HTTP/2 support. In the given scenario, we have nginx in front of the backend Tomcat/Jetty server(s), and even though performance-wise it worth enabling HTTP/2 on the backend, the requirement to have HTTPS there as well seems to be an overkill. HTTPS is not needed security-wise (only nginx is exposed), and is a bit cumbersome from the operational perspective - we'd have to add our certificates to each of the Docker containers that run the backend servers. Isn't there a way around that provides HTTP/2 support all the

How to broadcast in gRPC from server to client?

我只是一个虾纸丫 提交于 2019-12-01 06:16:26
I'm creating a small chat application in gRPC right now and I've run into the issue where if a user wants to connect to the gRPC server as a client, I'd like to broadcast that the event has occurred to all other connected clients. I'm thinking of using some sort of observer but I"m confused as to how the server knows of who is connected and how I would broadcast the event to all clients and not just one or two. I know using streams is part of the answer, but because each client is creating it's own stream with the server, I'm unsure of how it can subscribe to other server-client streams. Yup,

How to broadcast in gRPC from server to client?

自古美人都是妖i 提交于 2019-12-01 04:23:17
问题 I'm creating a small chat application in gRPC right now and I've run into the issue where if a user wants to connect to the gRPC server as a client, I'd like to broadcast that the event has occurred to all other connected clients. I'm thinking of using some sort of observer but I"m confused as to how the server knows of who is connected and how I would broadcast the event to all clients and not just one or two. I know using streams is part of the answer, but because each client is creating it

How can I enable HTTP/2 on HAProxy?

徘徊边缘 提交于 2019-11-30 17:15:35
We have recently shifted from HTTP to HTTPS. As we have already moved to HTTPS, we are thinking of moving to HTTP/2 to get performance benefits. As explained above that requests between browser and LB are secured (HTTPS) while communication between LB and app server still using HTTP What is the possibility of enabling HTTP /2 with the current setup? Can we enable HTTP/2 between browser and LB while communication between LB and app servers remain on HTTP? HAProxy 1.8 supports HTTP/2 From the 1.8 announcement : HAProxy 1.8 now supports HTTP/2 on the client side (in the frontend sections) and can

React Native Image requests over a single HTTP/2 connection

蹲街弑〆低调 提交于 2019-11-30 15:38:15
We have many React Native <Image> components rendering per screen and are witnessing performance issues due to many simultaneous http requests . Opening and closing a connection is expensive, and having too many simultaneous connections can hit limitations that cause timeouts. HTTP/2 features multiplexing , allowing multiple requests and response messages between the client and server to be in flight at the same time over a single connection, instead of multiple connections, which improves page load times. CloudFront supports HTTP/2, HTTP/1.1, and HTTP/1 by default depending on the version the

When does a http2 TCP connection close?

£可爱£侵袭症+ 提交于 2019-11-30 14:50:20
问题 I understand that http2 uses one tcp connection to serve multiple requests, for example, if I request index.html which contains a.css and a.js, these three requests will be done in one tcp connection. What happens if user clicks index2.html? does this request still use the same previous tcp connection? If so, will the browser keep the connection open until user closes the browser? And on the server side, does the server keep many connections open all the time? 回答1: When using HTTP/2, browsers