Welcome! Log In Create A New Profile

Advanced

Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

February 10, 2018 01:21PM
Hi compiled Nginx 1.13.9 from master branch to try out HTTP/2 Server Push but noticed the pushed assets loose their gzip compression and are served as non-compressed assets ? Is that as intended ? I posted my findings at https://community.centminmod.com/threads/hurray-http-2-server-push-for-nginx.11910/#post-59411

http2_push_preload on;
add_header Link "</css/bootstrap.min.css>; rel=preload; as=style";
add_header Link "</css/theme-style.css>; rel=preload; as=style";

push works as I see PUSH_PROMISE frames and chrome reports push

nghttp -navs https://baremetal.doman.com/

[ 0.018] recv (stream_id=13) :method: GET
[ 0.018] recv (stream_id=13) :path: /css/bootstrap.min.css
[ 0.018] recv (stream_id=13) :authority: baremetal.domain.com
[ 0.018] recv (stream_id=13) :scheme: https
[ 0.018] recv PUSH_PROMISE frame <length=42, flags=0x04, stream_id=13>
; END_HEADERS
(padlen=0, promised_stream_id=2)
[ 0.018] recv (stream_id=13) :method: GET
[ 0.018] recv (stream_id=13) :path: /css/theme-style.css
[ 0.018] recv (stream_id=13) :authority: baremetal.domain.com
[ 0.018] recv (stream_id=13) :scheme: https
[ 0.018] recv PUSH_PROMISE frame <length=40, flags=0x04, stream_id=13>
Subject Author Posted

Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

George February 10, 2018 01:21PM

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

George February 11, 2018 04:16PM

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

ru@nginx.com February 14, 2018 02:52PM

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

George February 14, 2018 06:19PM

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

ru@nginx.com February 14, 2018 11:10PM

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

George February 15, 2018 12:09AM

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

George February 15, 2018 12:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready