This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-09
Channels
- # announcements (23)
- # babashka (7)
- # beginners (69)
- # biff (5)
- # calva (12)
- # cider (10)
- # cljfx (9)
- # clojure (60)
- # clojure-austin (1)
- # clojure-europe (14)
- # clojure-korea (2)
- # clojure-losangeles (2)
- # clojure-madison (1)
- # clojure-nl (1)
- # clojure-norway (23)
- # clojure-uk (7)
- # clojuredesign-podcast (16)
- # clojurescript (40)
- # datomic (8)
- # gratitude (4)
- # mount (3)
- # nrepl (2)
- # off-topic (38)
- # pathom (3)
- # releases (1)
- # ring (8)
- # shadow-cljs (7)
Does ring jetty support http 2 and if so how do you enable it?
For one of my sites lighthouse is complaining about the use of http 1.1 so i'm just curious if there is an easy fix for that.
I found the issue it was nginx that was not using http2 I changed that and it worked nvm.
No, not yet, but https://github.com/sunng87/ring-jetty9-adapter does, I believe. However, most of the time Ring Jetty will be running behind a load balancer or some kind of reverse proxy like nginx that will support HTTP2.
Yeah that is the case in my setup so nginx now does http2 and then proxies requests to jetty via http 1.1. Thanks for the link I will check that out as well
It's worth noting that nginx doesn't support HTTP2 on the server it proxies to, so even if Ring Jetty had HTTP2, nginx wouldn't be able to use it.
Ok thanks the main thing for us was configuring nginx to use http2 for the external requests, that significantly increased all our lighthouse scores.