![]() The HTTP keep-alive header maintains a connection between a client and your server, reducing the time needed to serve files. This figure should be set according to how frequently your website is visited, i.e., sites with high traffic volumes will want to have a large timeout value to limit the number of TCP connection requests. KeepAliveTimeout – This directive sets the time that a server should wait for user requests before a new TCP connection needs to be established.When determining this figure, it’s important to take into account the number of files on your website that a user might want to access. MaxKeepAliveRequests – This directive sets the maximum number of requests for every keep-alive connection.Within the ‘Connection keep-alive’ header, the following two directives can affect its functionality. In the event that keep-alive is not enabled on your server, it can be turned on by adding the following code to your. Keep-alive also reduces both CPU and memory usage on your server. images, Javascript, and CSS stylesheets), a process that can lead to high page load times.Įnabling the keep-alive header allows you to serve all web page resources over a single connection. When someone visits your site, their browser needs to create new connections to request each of the files that make up your web pages (e.g. ![]() HTTP keep-alive, a.k.a., HTTP persistent connection, is an instruction that allows a single TCP connection to remain open for multiple HTTP requests/responses.īy default, HTTP connections close after each request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |