You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled over keep-alive a view times lately while checking Google Page-Speed for some advice for a specific project.
Keep-alive is an HTTP feature which allows the server to send multiple requests through one TCP-connection as far as I understood. This improves performance up to 50% according to the Apache config docu. @getifystates in #28 that a connection with keep-alive may be 20-30% faster.
From my experience and this SO question it seems like the HTTP header is set in a server-configuration and you can't change it easily via .htaccess.
Today I found this new answer on the SO question from above which describes that it is possible to use Header set Connection keep-alive in the .htaccess to control the behavior of this.
This works for me. I've tested this in two projects now, one of them is my blog. The request-header "Connection" is set to "keep-alive" now and Google Page-Speed does not show this anymore as "to be done". Here is a screenshot of the headers.
I'd suggest adding this to the .htaccess file as it seems to improve performance and I've not encountered any problem with setting this header.
Looking forward to your feedback!
The text was updated successfully, but these errors were encountered:
Original issue/discussion - h5bp/html5-boilerplate#1115 - was apache-specific. Moving to this repo following the move of the
.htaccess
.@drublic says:
The text was updated successfully, but these errors were encountered: