Keep alive enabled but no for webpagetest
|
10-22-2013, 11:21 PM
Post: #1
|
|||
|
|||
Keep alive enabled but no for webpagetest
Hi all,
this is my tesst result: http://www.webpagetest.org/result/131022...ve_enabled In my server the keep-alive is enabled, you can visit this page http://flaccadori.it/keepalive.php the code is HTTP_CONNECTION = <?php echo $_SERVER['HTTP_CONNECTION'];?> and in my htaccess I write that: <ifModule mod_headers.c> Header set Connection keep-alive </ifModule> thank you. |
|||
10-23-2013, 06:41 AM
(This post was last modified: 10-23-2013 06:43 AM by robzilla.)
Post: #2
|
|||
|
|||
RE: Keep alive enabled but no for webpagetest
The server that hosts your site is responding with "Connection: keep-alive, close", i.e. it's not allowing connections to be kept alive. You'll find this to be true in most shared hosting environments.
Note that $_SERVER['HTTP_CONNECTION'] does not represent a server configuration. Instead, it's based on the client's request. |
|||
10-23-2013, 05:20 PM
Post: #3
|
|||
|
|||
RE: Keep alive enabled but no for webpagetest
Thank you RobZilla, how I can see that response "Connection: keep-alive, close"?
I want to show it to my hosting admin, he said me "Apache Keep Alive setting is enabled on all our servers." |
|||
10-23-2013, 11:11 PM
(This post was last modified: 10-23-2013 11:16 PM by robzilla.)
Post: #4
|
|||
|
|||
RE: Keep alive enabled but no for webpagetest
You can use your browser's developer tools to inspect the HTTP headers. In your WPT results, you can click through to "Details" page and then click on any of the resources to view the request and response headers. I've attached an example.
Patrick's comments in this thread are relevant: Quote:That means keep--alives are not really enabled. I'm partially convinced that hosting providers were doing that just so you thought it might be while still allowing them to disable it but when the browser sees that "close" it will close the connection. His suspicion is probably valid in your case. |
|||
10-24-2013, 12:18 AM
(This post was last modified: 10-24-2013 12:32 AM by Sepu.)
Post: #5
|
|||
|
|||
RE: Keep alive enabled but no for webpagetest
Thank you robzilla, I'll show it to my hosting admin.
Ok now is enabled!!!!! http://www.webpagetest.org/result/131023...imization/ thank you rob! ![]() ![]() ![]() |
|||
10-24-2013, 01:53 AM
(This post was last modified: 10-24-2013 01:54 AM by robzilla.)
Post: #6
|
|||
|
|||
RE: Keep alive enabled but no for webpagetest
Great :-)
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)