{"action":"created","issue":{"url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/10","labels_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/10/comments","events_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/10/events","html_url":"https://github.com/glenjamin/webpack-hot-middleware/issues/10","id":105439072,"number":10,"title":"Add a note about gzip being incompatible with HMR","user":{"login":"STRML","id":1197375,"avatar_url":"https://avatars.githubusercontent.com/u/1197375?v=3","gravatar_id":"","url":"https://api.github.com/users/STRML","html_url":"https://github.com/STRML","followers_url":"https://api.github.com/users/STRML/followers","following_url":"https://api.github.com/users/STRML/following{/other_user}","gists_url":"https://api.github.com/users/STRML/gists{/gist_id}","starred_url":"https://api.github.com/users/STRML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STRML/subscriptions","organizations_url":"https://api.github.com/users/STRML/orgs","repos_url":"https://api.github.com/users/STRML/repos","events_url":"https://api.github.com/users/STRML/events{/privacy}","received_events_url":"https://api.github.com/users/STRML/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-08T18:10:05Z","updated_at":"2015-09-08T20:21:58Z","closed_at":null,"body":"If webpack-hot-middleware is installed after gzip middleware (like [compression](https://github.com/expressjs/compression)), no events will be sent as the buffers are not properly flushed.\r\n\r\nThis took a while to track down so it would be great if it were documented.\r\n\r\nAlternatively, we can check for the existence of a `res.flush()` method and call it. This would make SSE work even if gzip is used. See https://github.com/expressjs/compression/issues/17"},"comment":{"url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/comments/138688504","html_url":"https://github.com/glenjamin/webpack-hot-middleware/issues/10#issuecomment-138688504","issue_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/10","id":138688504,"user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T20:21:58Z","updated_at":"2015-09-08T20:21:58Z","body":"Cool. Tracking issue: https://github.com/expressjs/compression/issues/51"}}