Join the community today
Become a Member

Nginx Nginx - HTTP/2 Server Push feature request

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

  1. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    11:40 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

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    11:40 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
  4. eva2000

    eva2000 Administrator Staff Member

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    11:40 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

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Well 1st version of cloudflare http/2 push was buggy so there's some validity in them saying until it's battle hardened :)
     
  8. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    11:40 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

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    11:40 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

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. eva2000

    eva2000 Administrator Staff Member

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Aug 10, 2016
  13. upgrade81

    upgrade81 Member

    295
    17
    18
    Sep 5, 2016
    CH
    Ratings:
    +30
    Local Time:
    11:40 AM
    1.17
    10.3
    I bring up this topic.

    is it now possible to use http / 2 push with centmin beta?

    Thank you
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,600
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    8:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+