Hi,
For some really obscure reasons which we'd rather not try to elaborate upon here (trust me, you really do not want to know... ) I need to override the CEF/Chromium built-in http/https download mechanism, so that Windows integration can fully work. (Yes, I know it "kind of" works but the problem is I have an utterly evil web page which only works in IE, not in Chrome or Cef. )
The actual Windows integration part isn't so hard (since I'm using CefSharp and my app is .NET based); I can quite easily make NTLM/Kerberos-authenticated requests. That part I think I've already got working. The troublesome part is that when I return the data (by means of a scheme handler registered using CefRegisterSchemeHandlerFactory) _almost_ everything works fine... except that, for some crazy reason, Chromium does not detect that my response is gzip encoded.
(I also tried to do it first with the OnBeforeResourceLoad() approach which had similar results. It didn't work even though I noted in the Chrome dev tools that the HTTP response seemingly had the proper Content-Encoding header set.)
Actually, from looking at it a bit more right now, it seems like our CefSchemeHandler might not be completely sane. This *could* be causing the problem. Anyway, if someone has experience specifically with gzip encoded content while using some form of custom scheme (be it a proper CefSchemeHandler or just some OnBeforeResourceLoad hack), I'd be very glad to hear your story. TIA.