Is there a way to tell IIS/ASP.NET not to allow Keep-Alive for certain requests? Or even for an entire website, if that's really the only way to go about it?
+1
A:
Pretty sure it can't be done at the request level.
In IIS 6.0, it was exposed in a tab of IIS properties. In IIS 7, they kind of hid it.
dnord
2009-12-31 17:37:58
A:
HTTP Keep-Alives are enabled by default in IIS 6.0, which complies with the HTTP/1.1 specification for HTTP Keep-Alives. IIS holds open an inactive connection for as long as the ConnectionTimeout metabase property specifies (the default value is 120 seconds).
You can disable HTTP Keep Alive by following below link, it is for enabling you would have to do reverse to disable.
Ravia
2010-01-04 05:38:22