Is it possible to send html HEAD early (chunked)?

Martin Grotzke martin.grotzke at googlemail.com
Sun Jul 13 12:49:18 UTC 2014


Hi all,

inspired by the bigpipe pattern I'm wondering if it's possible to send the
full html head so that the browser can start downloading CSS and javascript
files.

An idea would be that the proxied backend uses a chunked encoding and sends
the html head as first chunk. The body would be sent as a separate chunk as
soon as all data is collected.

Not sure if this is relevant: In our particular case we're using ssi in the
body to assemble the whole page, and some of the includes might take some
time to be loaded. The html head contains an include as well, but this
should always be loaded from the cache or should be served really fast by
the backend.

What do you think about this? Has anybody tried this already?

Cheers,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140713/37e3dd0e/attachment.html>


More information about the nginx mailing list