Questions tagged [http2]

HTTP2 (or HTTP v2.0) is an alternative to, but does not obsolete, HTTP1.1.

HTTP v1.1's underlying transport has several characteristics that have a negative overall effect on application performance today. HTTP/2 addresses these issues by defining an optimized mapping of HTTP's semantics to an underlying connection. Specifically, it allows interleaving of request and response messages on the same connection and uses an efficient coding for HTTP header fields. It also allows prioritization of requests, letting more important requests complete more quickly, further improving performance.

Source: RFC 7540 @ https://datatracker.ietf.org/doc/html/rfc7540
1819 questions
0
votes
1 answer

With a node HTTP2 push stream, what is the purpose of the request header vs. response header?

When a node HTTP2 server creates a new push stream, what is the purpose of the request header vs. response header? Server code: http2Server.on('stream', (stream) => { stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { // send…
TrevTheDev
  • 2,616
  • 2
  • 18
  • 36
0
votes
1 answer

HTTP/2 Server Push not working for JavaScript files

I am trying to implement HTTP/2 Server Push through CloudFlare Workers using below code: let mainScript='main-es2015.e66dc0bc532401d980dc.js'; response.headers.append("Link", "; rel=preload; as=script;"); I have also tried adding…
Naveed Ahmed
  • 10,048
  • 12
  • 46
  • 85
0
votes
1 answer

Can a HTTP/2 client choose which resources to receive via Server Push?

I have a static site. In order to speed up site loading, I want to push the CSS to the client using HTTP/2 Server Push. However, I am also concerned about bandwidth usage on mobile clients. If I specify a resource to be pushed to the client (e.g.…
iblue
  • 29,609
  • 19
  • 89
  • 128
0
votes
1 answer

JSF Download over HTTPS not working, even though under HTTP works fine

I am dealing with a weird Error, that is reproducible only in production over a https connection. Firstly I am trying to download a *.cvs file, my backingbean code looks as follows: ExternalContext externalContext =…
att1la
  • 23
  • 4
0
votes
1 answer

TypeError: Network request failed for 204 (No Content) and 304 (Not Modified) call over HTTP2 (ERR_HTTP2_PROTOCOL_ERROR in Chrome)

We have switched from HTTP1.1 to HTTP2 protocol and have noticed that some requests fail. When a server responds with 204 or 304 we get the following error: TypeError: Network request failed Chrome additionally shows it with the following error on…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
0
votes
0 answers

Cannot use http2 by nginx

i am using nginx to serve my application, but i keep fail to use http2 protocol, the following is my nginx version nginx version: nginx/1.17.9 openssl version: OpenSSL 1.1.1d 10 Sep 2019 content in /etc/nginx/nginx.conf: user …
Aaron Wei
  • 85
  • 1
  • 5
0
votes
1 answer

HTTP2: Is it possible to send subsequent or additional HEADER blocks on a stream?

Node provides this method: http2stream.additionalHeaders(headers) Which Sends an additional informational HEADERS frame to the connected HTTP/2 peer. However the node codebase contains this comment: // Sends a block of informational headers. In…
TrevTheDev
  • 2,616
  • 2
  • 18
  • 36
0
votes
1 answer

Connection header disapper when HTTP2

In making a request to my website with curl and HTTP 1.1, I see my keep-alive connection header explicitly: $ curl https://website.com/ -i HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 2 Connection: keep-alive But with…
Simone Nigro
  • 4,717
  • 2
  • 37
  • 72
0
votes
0 answers

Chrome sniffing http2 packets

I have some problems with sniffing chrome http2. I use NetRipper with modified signatures in order to hook functions and I can't find out http2 packets in SSL_Read hook. Do somebody have a solution for that or some extra information in order to…
0
votes
2 answers

node http2 requests with cookies

Node http2 requests look like this: const client = http2.connect('https://somehost.com') const req = client.request( { ':path': '/some/path', ':method': 'GET', 'header-name': 'header-value', 'cookie': 'foo=bar' } ) It doesn't seem…
pguardiario
  • 53,827
  • 19
  • 119
  • 159
0
votes
1 answer

How to receive event in JS from Java RestApi Spring 3 IE11?

The application in based on Spring 3 for backend and JSP for views and HTML/JS for front. I have a Rest client that can be called by others applications. How can i receive in my JS code, when i receive a request on my Rest client ?
NashBird99
  • 193
  • 2
  • 12
0
votes
1 answer

Blazor server side projects no longer log in

I have a number of Blazor test projects all of which were working correctly until a few days ago. Now none of them will login and give the following error: This site can’t be reached The web page at https://localhost:44373/Identity/Account/Login…
MaxTheCoder
  • 125
  • 9
0
votes
1 answer

Can HTTP/2 client terminate the stream by sending a HEADER frame in bidirectional streaming RPC?

Suppose we have a bidirectional streaming RPC where the client is sending several request messages (i.e. multiple DATA frames) and the server is answering back with several response messages (i.e. multiple DATA frames). As I understand it, when the…
user11969175
  • 31
  • 1
  • 4
0
votes
1 answer

Apache HTTP2 h2c mode not working properly

I would like to enable h2c mode on apache, so I can use HTTP2.0 protocol. In my virtual host configuration I have included the line: Protocols h2c http/1.1 I have also followed the advise to disable prefork but it doesn't work as…
jlanza
  • 1,208
  • 3
  • 23
  • 43
0
votes
0 answers

http/2 on Apache and Wordpress

I am running a Wordpress instance on Ubuntu 16.04, Apache/2.4.41, Let's encrypt for HTTPS and I want to enable http/2. Therefore successfully installed http2 and activated it by sudo a2enmod http2. This worked fine. Afterwards I modified the…
DS87
  • 536
  • 3
  • 9
  • 29