3 ms·
The significant (and only) feature addition being HTTP/2 server push support: > Feature: HTTP/2 server push support; the "http2_push" and "http2_push_preload"
by seeekr 9y ago
The significant (and only) feature addition being HTTP/2 server push support:
> Feature: HTTP/2 server push support; the "http2_push" and "http2_push_preload" directives.
- cajdavidson 9y agoThanks, found this link about this which was pretty useful as someone who doesn't know much about this already; https://www.smashingmagazine.com/2017/04/guide-http2-server-push/ https://www.smashingmagazine.com/2017/04/guide-http2-server-...
- ehPReth 9y agoHere's the docs for the specific configuration parameters introduced (http2_push and http2_push_preload): https://nginx.org/en/docs/http/ngx_http_v2_module.html#http2_push https://nginx.org/en/docs/http/ngx_http_v2_module.html#http2...
- continuations 9y agoWhat about caching? If the assets I want to push to browser are already cached in the browser would Nginx be smart enough to not to push?
- fnordo 9y agoIn their intro to push they say to not push objects that are already cached so I'd wager no
- alwillis 9y agoCache digests enables the browser to tell the server what’s cached so the server doesn’t push something unnecessarily: http://httpwg.org/http-extensions/cache-digest.html http://httpwg.org/http-extensions/cache-digest.html