c# - I'm attempting to force gzip compression on a page using GZipStream but the browser says I'm using unsupported compression -


I transit to discuss Steve Soders about forcing gzip compression

I got a module that is running it:

  void Sndrbpratisndehen headers (object sender, Iventargs e) from as {var app = Actiteepiaplikeshn; Var request = app.Request; Var response = app. response; If (compressionUtils.GzipSupported (request) || compressionwall.zipnotecontact field (request)) {return; } If (compressionUtils.GzipSupportedExplicitly (request)) {response.Filter = new GZipStream (response.Filter, CompressionMode.Compress); reaction. Adheeder (html printers container encoding, "jizip"); Return; } Rispanskwrite ( "& lt; iframe style = \" display: none; \ "src = \" / Kmpressedpagekaspsh \ "& gt; & lt; / iframe & gt;);}  

CompressionUtils.GzipSupported only accepts the 'encoding' tentative title, while CompressionUtils.GzipSupportedExplicitly and CompressionUtils.GzipNotSupportedExplicitly cookies whether the browser can actually read gizs

But when I load a page in Firefox, I get this error:

Content encoding Error

The page that you Trying to view, it can not be shown because it uses an invalid or unsupported compression.

And in Fiddler it shows that the content-encoding header has been added but the material has not been compressed

found that out I just binding too late , Was forced to PostMapRequestHandler instead of PostSearchRequestHeaders function properly.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -