'Disable keep-alive in Firefox

I am using firefox 36.0. I set the value of network.tcp.keepalive.enabled as false.. but in the request header I can still see connection:keep-alive

I need to disable it for some of my experiments. Anybody has any idea?



Solution 1:[1]

This seems to be a bug on Firefox, as a temporary workaround you can try this:

network.http.keep-alive.timeout = 0

This preference only has an effect if network.http.keep-alive is true.

Solution 2:[2]

The correct parameter was network.http.keep-alive ...but does not exist any more (!)

As far as I understand, they consider you should not do that with HTTP/1.1.

https://bugzilla.mozilla.org/show_bug.cgi?id=770331#c17

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pedro Lobito
Solution 2