Azure Website Connection Keep-Alive

Kyojimaru picture Kyojimaru · Jan 22, 2015 · Viewed 7.4k times · Source

I was using Windows Azure Website to host my website.

  1. I want to enable Connection: Keep-Alive in my website, how to enable it for my website?
  2. How to check whether I have successfully enabled it on my website?
  3. How to set the timeout for the Connection: Keep-Alive and how to determine the best value for the timeout

My server is Windows and using IIS

Answer

Lybecker picture Lybecker · Dec 21, 2015

You can set most of the configuration options for IIS 8 in Azure Web Sites too. To enable keep-alive, add the following section in the web.config

<configuration>
  <system.webServer>
    <httpProtocol allowKeepAlive="true" />
  </system.webServer>
</configuration>