Current time: 04-18-2014, 04:15 PM Hello There, Guest! (LoginRegister)

Keep-Alive in Google Page Speed
04-01-2012, 12:24 AM
Post: #1
Keep-Alive in Google Page Speed
Does anyone know more about this?
It seems that it is something Dreamhost has to do within some settings. See Below ....

According to Apache, enabling Keep-Alive has in some cases sped up site performance by as much as 50 percent. Unfortunately, this isn't something you can do through .htaccess. You will have to talk to your hosting provider as it is a setting within Apache or IIS that needs turned on.
Find all posts by this user
04-01-2012, 01:40 AM
Post: #2
RE: Keep-Alive in Google Page Speed
You can set it in your app. In php, you just send header("Connection: Keep-alive");
Find all posts by this user
04-01-2012, 03:16 PM
Post: #3
RE: Keep-Alive in Google Page Speed
No, that has no effect — keepalive has to be enabled by the web server, not by PHP.

Keepalive should be enabled by default, so there's nothing additional you should have to do.
Find all posts by this user
04-01-2012, 04:48 PM
Post: #4
RE: Keep-Alive in Google Page Speed
Ah, ok. I forced it off by using header('Connection: Closed'); to see if it would help avoid some errors I was seeing with Ajax requests:

ModSecurity: Error reading request body: End of file found

It seemed to have helped, but I still see some. I assumed the opposite header could be used as well.
Find all posts by this user
04-01-2012, 09:44 PM
Post: #5
RE: Keep-Alive in Google Page Speed
Maybe that is why one day I get 93/100 and the next day 88/100 from Page Speed.
When I get the 88/100 at the top is the red dot with Keep-Alive (has to be turned on for some files)
When I get the 93/100 Keep-Alive is nowhere to be seen as instructions todo, so I guess that means it is turned on.
Find all posts by this user


Forum Jump: