HAProxy community

Haproxy http2 server push

testing server push on haproxy
HA-Proxy version 2.0.12

frontend cy
option http-use-htx
bind ssl crt /etc/haproxy/cert.pem alpn h2,http/1.1
acl hdr_cy hdr_beg(host) -i domen.com
http-request early-hint Link “</js/jquery.validate.js>; rel=preload; as=script”
use_backend bknd_cy if hdr_cy

backend bknd_cy
balance source
option allbackups
option http-use-htx
timeout server 3m
server web-1-https server:11443 check port 11443 inter 3000 alpn h2

[root@rejik haproxy]# nghttp -ans https://domen.com/ | grep “/js/jquery.validate.js”
69 +410.02ms +322.09ms 87.93ms 200 13K /js/jquery.validate.js

/js/jquery.validate.js - is not push , must be marked * , in nghttp


as far as I know haproxy does not support server push with mode http. It does support early hints however.

used this article https://www.haproxy.com/blog/haproxy-1-9-has-arrived/#early-hints-http-103https://www.haproxy.com/blog/haproxy-1-9-has-arrived/#early-hints-http-103
is used there mode http