Turning off compression

Posted by Community Admin on 04-Aug-2018 18:56

Turning off compression

All Replies

Posted by Community Admin on 24-Mar-2012 00:00

Hi,

I have a SF 5.0.2523.0 sample site. I tried turning off compression by setting the following element in web.config:

<urlCompression doDynamicCompression="false" doStaticCompression="false" dynamicCompressionBeforeCache="false" />

However I can still see in Fiddler that my output gets gzip compressed.
Is there any other switch I need to turn off?

Thanks!

Posted by Community Admin on 26-Mar-2012 00:00

Hey Martin,

Are you sure you saw it right? At the top right inspector window Fiddler will show that it's capable of serving 'gzip, deflate' but when I check the content I'm seeing the following:

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 26 Mar 2012 09:58:16 GMT
Content-Length: 7898
 
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Expires: -1
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 26 Mar 2012 09:59:08 GMT
Content-Length: 3010

By just changing those 3 options in the web.config...

Jochem

This thread is closed