(Last Updated On: January 14, 2017)

We usually enable HTTP keep-alive because it responses to header by keeping the client/server connection open across multiple server requests. The open connection improves the web performance when a client makes multiple server requests for webpage content, because the server can return the content for each request more quickly rather than processing all requests at once. Or if we don’t enable HTTP Keep-Alive, the server got to open a new connection for every single request.

HTTP Keep-alive

Locate the Code in .htaccess

To enable HTTP keep-alive response header in your WordPress blog all you have to do is to locate the following line codes in your blog’s .htaccess file. Or if you don’t know how to edit .htaccess file in WordPress, click here.

<IfModule mod_headers.c>
Header set Connection keep-alive

Make sure you have place the above codes after line #END WordPress. Yep, you did it.