/plushcap/analysis/cloudflare/accelerating-node-js-applications-with-http-2-server-push

Accelerating Node.js applications with HTTP/2 Server Push

What's this blog post about?

In April 2016, support for HTTP/2 Server Push was announced via the HTTP Link header. Netjet middleware was developed to parse generated HTML and automatically add Link headers in Node.js applications. This technique can be implemented in other environments as well. However, using an HTML parser in the response stack increases page load latency. To mitigate this issue, netjet includes an adjustable LRU cache keyed by ETag headers. Netjet is compatible with any Node.js HTML framework that supports Express-like middleware and can be used without frameworks as well. Chrome's Developer Tools can verify Server Push usage while Firefox's Developer Tools do not directly expose it yet. Contributions to improve netjet or the documentation are appreciated. Netjet has been integrated with Ghost, a popular blogging platform, since version 0.8.0.

Company
Cloudflare

Date published
Aug. 16, 2016

Author(s)
Terin Stock

Word count
605

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.