Header Ads Widget

Ticker

6/recent/ticker-posts

Enable Keep-Alive for Giving Speed to Your Website

About Keep-Alive



In a single line we can say that about Keep-Alive, it is a communication between the web server and the web browser that says "you can grab more than just one file at a time".Keep alive is also known as a persistant connection

Step for enable keep-alive.


Keep-alive is enabled using the "Connection: Keep-Alive" HTTP header
If keep-alive is not enabled it is likely your HTTP headers are stating "connection: close"
Change that to "connection: keep-alive" to enable keep-alive.
Enabling keep-alive depends on what server you are using and what you have access to. We cover the most common methods below.

Enable keep-alive using .htaccess



If you don't have access to your webserver config file then you can enable keep-alive yourself using an .htaccess file.
Caopy the below code and paste this code on your .htaccess file and upload it.


<ifModule mod_headers.c> Header set Connection keep-alive </ifModule>


You can also enable this Method by using the cPanel in VHM. You need to access the ‘Apache Configuration’ section which is located in the ‘Service Configuration’ menu. Then you will need to click on the ‘Global Configuration’ option for Apache.



You will now see a lot of configuration options for Apache including the Keep-Alive option which you can turn on. 



Hit the Save button at the bottom of the page to apply the change.

Post a Comment

0 Comments