ghedo / http2-push-nginx-module

*DEPRECATED* NGINX now supports HTTP/2 server push out of the box http://hg.nginx.org/nginx/rev/641306096f5b
BSD 2-Clause "Simplified" License
40 stars 5 forks source link

Link rel=preload support for proxied connections #11

Open felixbuenemann opened 6 years ago

felixbuenemann commented 6 years ago

It would be great if this module could support Link: </foo.css>; rel=preload; as=style headers from upstream servers to push those resources to clients.

This enables use of h2 push in reverse proxy setups.

More details can be found here:

ghedo commented 6 years ago

The idea was to implement this outside of the module itself (e.g. in Lua), so that we wouldn't need to parse Link headers in C. I've been meaning to write an example (similar to the openresty one) to do this, but I haven't had time (see TODO).