Hacker News new | ask | show | jobs
by pquerna 3901 days ago
Other comments are are good starts.

Another method would be to add a headers to the response:

    Server-Push: /relative/url
Then have an output filter pull them out and push them -- but AFAIK the APIs to do that don't yet exist in mod_h2 to push like that. Adding headers in the response is nice because it works with any 'backend', and the web server doesn't have to parse the HTML/css/etc going the through it.
1 comments

This how it's done in mod_spdy[1] and App Engine[2], with the X-Associated-Content header.

[1]: https://code.google.com/p/mod-spdy/wiki/OptimizingForSpdy#Us... [2]: https://github.com/GoogleChrome/http2push-gae