add res.flush() so compression doesn't interfere with SSE