问题
I was using Windows Azure Website to host my website.
- I want to enable
Connection: Keep-Alive
in my website, how to enable it for my website? - How to check whether I have successfully enabled it on my website?
- How to set the
timeout
for theConnection: Keep-Alive
and how to determine the best value for thetimeout
My server is Windows and using IIS
回答1:
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>
来源:https://stackoverflow.com/questions/28085768/azure-website-connection-keep-alive