top | item 14107057

(no title)

pcollins123 | 9 years ago

I'm not sure they will ever implement it actually. Nginx does not support HTTP/2 server push as of March 2017 (v1.11).

Owen Garrett at nginx has summarized the reasons as follows:

- it is a non-essential and optional part of http/2

- if the client already has the resource cached, then by pushing it to them you might be unnecessarily wasting bandwidth.

- server push spec might change in the future.

- Link headers as hints is useful, but usage has been low from web developers.

- server push has been available as part of SPDY and was not utilized by many web developers.

Read his original comments here[1]. This table[2] accurately describes the pro's and con's of server hints vs server push.

Personally this disappoints me because I think this would be a valuable feature for web developers willing to invest the time to optimize page speeds. I also know that some large CDN's like Cloudflare have implemented their own version within nginx to optimize page downloads.

[1]: https://www.nginx.com/blog/http2-r7/

[2]: https://www.chromium.org/spdy/link-headers-and-server-hint

discuss

order

No comments yet.