Add output buffering for header/cookie