Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring httpCompression settings for WIndows Azure Web Sites

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)

like image 783
Kramer00 Avatar asked Jan 21 '13 11:01

Kramer00


People also ask

How to Install dynamic content compression?

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.

How do I edit Azure Web config?

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.

How do I get Azure Web config?

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.

What is staticCompressionIgnoreHitFrequency?

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.


1 Answers

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.

like image 89
AvkashChauhan Avatar answered Sep 16 '22 15:09

AvkashChauhan