Disable compression in Windows Azure Preview

This may sound like a weird request, but I need to check something and you need to disable compression on the Windows Azure website. The site acts as a website in preview mode, which means that I cannot log in to the virtual machine to configure IIS settings.

I updated the web.config file, but that did not help.

<system.webServer> <urlCompression doStaticCompression="false" doDynamicCompression="false"/> </system.webServer> 

Compression is still on and seems to be on by default. There are a lot of questions on SO on enabling compression, but I can't find anything in disabling .

Does anyone have any advice ??

+4
source share
2 answers

Not all settings in web.config are delegated when you deploy your web application to Windows Azure websites. Some settings in web.config are delegated, and they reflect on your sites, while other settings are respectfully ignored, and disabling compression is one of them, which is why you see the above results. Using the exact same web.config parameter or using Appcmd, you can disable compression only if you have enough control on the IIS server. While this feature is important to you, your other options are to use the Windows Azure cloud service and deploy a web role or use Windows Azure virtual machines.

I’m sure that disabling the compression feature on Windows Azure websites is still not delegated and therefore not supported in the current version of Windows Azure Website Previews . I can say that this is certainly a function that should be included in later versions, however, about this availability, when it is possible or not, I have no comments.

+3
source

I know this question has been posted since ancient times, and that day I managed to disable http compression by setting it up in IIS.

just like @Deano suggested

 <system.webServer> <urlCompression doStaticCompression="false" doDynamicCompression="false"/> </system.webServer> 
+2
source

Source: https://habr.com/ru/post/1438233/


All Articles