Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx Nginx - HTTP/2 Server Push feature request

Discussion in 'Nginx and PHP-FPM news & discussions' started by bassie, Jun 29, 2016.

  1. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    7:55 AM
    Server push is one of the fundamental and maybe one of the most important new features of HTTP /2.
    It is widely referred in almost all reviews to the first three new top features of HTTP / 2.
    It is incomprehensible that it's not on the Nginx road map.

    Apparently, the preference is given to for example integrate the HTTP JavaScript module which is already available and can be integrated by the user itself, today right now.

    The only reason I can think of to not develop and not focus on server push is that it is or will be exclusive to the Plus version.

    Both community and plus versions who increasingly change from each other, with more and more features that do not appear in the community version.

    Could it be a good idea to prepare a formal request to the developer team?
    (For the development of server push?)
    Or start a petition?

    I'm looking forward to opportunities. Maybe YOU have another idea's?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
    As with anything that is provided for free (open source nginx version), whatever is provided and/or whenever a feature is provided (i.e. http/2 server push), is ultimately up to the developer's priorities and goals. Cloudflare probably sponsored or paid for http/2 server push development in nginx so got first dibs with access I am guessing. like other sponsored features of Nginx, it probably will eventually trickle down into nginx plus and nginx open source versions eventually. But given how unstable Cloudflare's nginx http/2 server push is from testing, it probably still needs alot of work by Cloudflare/nginx folks to let it mature and iron out bugs etc.

    Nginx has a history of only releasing features in open source and plus version that are almost 100% working and stable without issues. It's one of the reasons I like using nginx has well - a feature works as expected 99.999% of the time.

    You could try pushing nginx folks for the feature but pretty sure like all developers on their respective projects, they'd have their own priorities and need to balance their time and focus. I know I do for centmin mod development and features so can understand it from both sides as a developer and as an end user :)

    Personally, not in a hurry for http/2 server push given what I experienced with Cloudflare's nginx http/2 server push issues. I'd rather let them iron out bugs first. And well if you use ngx_pagespeed module you pretty much can configure it to achieve the same benefits as http/2 server push and ngx_pagespeed works for both http and https protocols unlike nginx http/2 server push which only works over https protocol. ngx_pagespeed been working well for 2+ yrs on centminmod.com site and this very forum :)
     
  3. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    7:55 AM
    It seems as Cloudflare fixed there problems.
    As server push works fine on Apache 2.4, it is possible to run it decent on a webserver.
    If the server push module is actually sponsored, fine.
    But don't come with excuses then as Nginx team of where server push is not important bla bla but admit it. But they never do, because then they get criticism, and that you never want as a company.

    About pagespeed i don't agree.
    This is a completely different method.
    Optimize existing files (Pagespeed) relative to optimize the connection with its file transfer (Server pushing the files at once).

    Finally, the server push patch as there is a little bit of hope.

    Though I fear that they are going to stretch it consciously like the SPDY patch.
    Which came 15 days before the end of SPDY.
     
    Last edited: Jul 2, 2016
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
    Different method but outcome same as in faster visual page render time as ngx_pagespeed can optimise and inline css which is needed to display and render the critical render path as fast as possible. HTTP/2 server push for me is beneficial if you can push css files required to render the critical render path as early as possible :)
    thanks for heads up will check it out again

    @Xon will be interested :)

    from cloudflare in comments
     
  5. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    7:55 AM
    Problem is that Pagespeed is quite slow, it does not cache, processed material, (so it runs to re-processing all the time (more cpu, ram etc), unless you are using Varnish or Nginx as proxy cache.

    Problem with that is that you are actually using an additional web server so you have more chance of failure and fault debugging takes more work. All that for a little profit. The question is whether it is worth. You can pre-optimize several files as images and javascript files permanently (image compress, minify etc).

    Btw. I have added an interesting quote at my previous comment.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
    Actually ngx_pagespeed can use file or memcached server for rewritten resources but yes not at browser cache end PageSpeed System Integration  |  PageSpeed Module  |  Google Developers For forums and centminmod.com site's ngx_pagespeed usage I use memcached server. From ngx_pagespeed console

    upload_2016-7-2_5-16-21.png

    upload_2016-7-2_5-14-58.png

    upload_2016-7-2_5-19-12.png
     
    Last edited: Jul 2, 2016
  7. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
    Well 1st version of cloudflare http/2 push was buggy so there's some validity in them saying until it's battle hardened :)
     
  8. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    7:55 AM
    Surfed through your supplied cache document very quickly.

    Is it correct that memcached is used to optimize multiple sources at once (without memcached this isn't possible), thus faster. But after this proces, memcached only stored the metadata (how to optimize) but not the entire optimized file?
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
  10. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    7:55 AM
    Thanks for your reply.
    Do you have some up-to-date benchmarks from Pagespeed vs none Pagespeed? Thanks.
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
  12. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    3:55 PM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Aug 10, 2016