{"action":"created","issue":{"url":"https://api.github.com/repos/aickin/react-dom-stream/issues/5","labels_url":"https://api.github.com/repos/aickin/react-dom-stream/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/aickin/react-dom-stream/issues/5/comments","events_url":"https://api.github.com/repos/aickin/react-dom-stream/issues/5/events","html_url":"https://github.com/aickin/react-dom-stream/issues/5","id":112731667,"number":5,"title":"Gzip will cause react-dom-stream to not stream content","user":{"login":"geekyme","id":977460,"avatar_url":"https://avatars.githubusercontent.com/u/977460?v=3","gravatar_id":"","url":"https://api.github.com/users/geekyme","html_url":"https://github.com/geekyme","followers_url":"https://api.github.com/users/geekyme/followers","following_url":"https://api.github.com/users/geekyme/following{/other_user}","gists_url":"https://api.github.com/users/geekyme/gists{/gist_id}","starred_url":"https://api.github.com/users/geekyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekyme/subscriptions","organizations_url":"https://api.github.com/users/geekyme/orgs","repos_url":"https://api.github.com/users/geekyme/repos","events_url":"https://api.github.com/users/geekyme/events{/privacy}","received_events_url":"https://api.github.com/users/geekyme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-22T05:06:02Z","updated_at":"2015-10-22T12:27:57Z","closed_at":null,"body":"![image](https://cloud.githubusercontent.com/assets/977460/10657406/5a21be58-78bd-11e5-8a80-9e8efb1fa106.png)\r\n\r\nTried this out on a test site, I don't see the content being streamed down properly cuz if it did, you would see main-xxx.css start downloading before for-him/ finish downloading. \r\n\r\nAm I missing some kind of proper encoding?"},"comment":{"url":"https://api.github.com/repos/aickin/react-dom-stream/issues/comments/150205371","html_url":"https://github.com/aickin/react-dom-stream/issues/5#issuecomment-150205371","issue_url":"https://api.github.com/repos/aickin/react-dom-stream/issues/5","id":150205371,"user":{"login":"geekyme","id":977460,"avatar_url":"https://avatars.githubusercontent.com/u/977460?v=3","gravatar_id":"","url":"https://api.github.com/users/geekyme","html_url":"https://github.com/geekyme","followers_url":"https://api.github.com/users/geekyme/followers","following_url":"https://api.github.com/users/geekyme/following{/other_user}","gists_url":"https://api.github.com/users/geekyme/gists{/gist_id}","starred_url":"https://api.github.com/users/geekyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekyme/subscriptions","organizations_url":"https://api.github.com/users/geekyme/orgs","repos_url":"https://api.github.com/users/geekyme/repos","events_url":"https://api.github.com/users/geekyme/events{/privacy}","received_events_url":"https://api.github.com/users/geekyme/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T12:27:57Z","updated_at":"2015-10-22T12:27:57Z","body":"Oh ok I was using res.writeHead to write the content encoding to text/html.\r\n\r\n\r\n> On 22 Oct 2015, at 5:35 PM, Yuriy Grunin <notifications@github.com> wrote:\r\n> \r\n> @aickin compression is working for me: the response is chunked and gzipped.\r\n> I think you don't need to add flush calls because it's user's responsibility to do so if he really needs it.\r\n> \r\n> @geekyme Try to set content type of the response via res.type('html') before calling any res.write().\r\n> From compression docs:\r\n> \r\n> The default filter function uses the compressible module to determine if res.getHeader('Content-Type') is compressible.\r\n> \r\n> It solved my problem.\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> \r\n"}}