3 ms·
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
by pquerna 11y 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.
- spankalee 11y agoThis 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#Using_SPDY_server_push https://code.google.com/p/mod-spdy/wiki/OptimizingForSpdy#Us... [2]: https://github.com/GoogleChrome/http2push-gae https://github.com/GoogleChrome/http2push-gae