caddy: HTTP2 pushes not working
(Are you asking for help with using Caddy? Please use our forum instead: https://forum.caddyserver.com. If you are filing a bug report, please take a few minutes to carefully answer the following questions. If your issue is not a bug report, you do not need to use this template. Thanks!)
1. What version of Caddy are you running (caddy -version)?
Caddy 0.9.5 (+7d15435
2. What are you trying to do?
enable http2 push
3. What is your entire Caddyfile?
my.domain:443 { push / { /static/_cache/merged/d1da6bf60541e004556afd2b8358df2d.min.js /static/_cache/merged/911bac75bca05a0baeedac6b4ebef29a.min.css } gzip log /var/log/my.domain-access.log errors /var/log/my.domain-error.log proxy / 127.0.0.1:80 { header_upstream Host “my.domain” header_upstream X-Forwarded-Proto “https” } tls my.domain.crt my.domain.key root /var/www/html }
4. How did you run Caddy (give the full command and describe the execution environment)?
/usr/bin/caddy -quic -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/www/html
5. Please paste any relevant HTTP request(s) here.
Checked Network on Chrome and FF.
6. What did you expect to see?
/static/_cache/merged/d1da6bf60541e004556afd2b8358df2d.min.js /static/_cache/merged/911bac75bca05a0baeedac6b4ebef29a.min.css to be pushed
7. What did you see instead (give full error messages and/or log)?
no Link headers with pushed resources while GETting / and them are not pushed.
Can you please check why pushes not working. Thanks.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- push: Reorder before proxy; and allow zero arguments (cf. #1573) — committed to caddyserver/caddy by mholt 7 years ago
Yup, “push” alone and push re-order works now.
Thanks a lot.