Is there anyway of controlling the compression settings in windows azure web sites.
I want to enable dynamic json compression, and can successfully do this with on premise sites by configuring the applicationHosts.config file accordingly.
Are there any options for doing this on a windows azure web site? (not web role)
Select Turn Windows features on or off. Navigate to Internet Information Services > World Wide Web Services > Performance Features > Dynamic Content Compression. Mark the checkbox corresponding to the Dynamic Content Compression and lick OK. Wait until the installation is complete.
If you want to change web. config files you can use the Azure portal, there is a tool called "App Service Editor" in preview or Kudu that lets you edit any of the files you've deployed.
In the Azure portal, search for and select App Services, and then select your app. In the app's left menu, select Configuration > Application settings. For ASP.NET and ASP.NET Core developers, setting connection strings in App Service are like setting them in <connectionStrings> in Web.
staticCompressionIgnoreHitFrequency. Optional Boolean attribute. If True, disables the behavior that a static file is compressed only if it is hit a certain number of times within a time period. You may encounter circumstances In which you want static content always to be compressed to lower bandwidth usage.
HTTP compression is not supported with Windows Azure Websites. As this is a very common request from Windows Azure Websites, so Azure Websites team does know about it and working on it. If HTTP compression is MUST for your application, I would say Azure Web Role is your best option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With