question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🚀 Enable HTTP2

See original GitHub issue

HTTP2 is now a widely adopted technology, it would be cool to enable it. It has some advantages:

  • Single Connection. Only one connection to the server is used to load a website, and that connection remains open as long as the website is open. This reduces the number of round trips needed to set up multiple TCP connections.
  • Header Compression. HTTP/2 uses HPACK compressions, which reduces overhead. Many headers were sent with the same values in every request in HTTP/1.1.
  • Multiplexing. Multiple requests are allowed at the same time, on the same connection. Previously, with HTTP/1.1, each transfer would have to wait for other transfers to complete

There are two steps to enable it:

  • in application_prod.yml and application_dev.yml, the parameter jhipster.http.version has to be changed to V_2_0
  • the nginx configuration has to be updated to support http2. It should be as easy as adding http2 to the SSL listener, something like listen 443 ssl http2;

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kruschecommented, Apr 26, 2019

We use it already 😃 Have a look into the chrome console when connecting to test or production server, it is handled by nginx, therefore there is no configuration in the Artemis Server any more. I am not sure how internal communication between nginx and Artemis is handled and whether we use http2 here or not. Maybe @jpbernius can answer this…

0reactions
jpberniuscommented, May 14, 2019

Both jhipster and nginx are configured to use http2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration for HTTP/2 - WP Rocket Knowledge Base
If your site runs on HTTP/2, here are the things you should consider for WP Rocket. Not sure if your site uses HTTP/2?...
Read more >
What Is HTTP/2 And How Do I Enable it on WordPress? (2021)
Yes, you should enable and use HTTP2 on your website if you can. HTTP2 will make your website faster and there are absolutely...
Read more >
How and Why You Should Enable HTTP2 on Web Servers
In Google Chrome, go to Developer Tools (Ctrl+Shift+I) and right-click on any of the tabs that appear such as name, status, type, size,...
Read more >
How to easily add SSL and HTTP/2 to your site for free
Step 1: Enable Cloudflare ... To enable Cloudflare in WP Rocket, go to the Settings and click on the CDN tab. Check the...
Read more >
What is HTTP/2 – The Ultimate Guide - Kinsta
Binary frame formats enable the exchange of multiple, concurrently open, independent bi-directional sequences without latency between successive ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found