0

Apparently, because my site uses cookies, a SetCookie header is sent with every page on my site...well I don't want that as Google PageSpeed sees that as a huge slowdown...so I either have to create a cookieless doamin to serve all of my content, or preferably, I'd like to suppress the SetCookie from being sent in the header of my index.htm...I don't use cookies on those pages anyway. I googled this, but can't find an answer...was hoping someone could help me here

Edited by SerjSagan: n/a

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by sDJh
0

Well then, why do you use PageSpeed? I actually never heard about that before and having had one minute a look at it, it doesn't really make sense to me. For the most simple way to find out how fast you code really is, use the function microtime() (http://de3.php.net/manual/en/function.microtime.php) after let's say 25 lines of code. That will give you a very good picture of each part of your code that is executed and helps you to concentrade on these parts that are slow.

If you still want to use Google, you could try to find the line in the header that is set by Google and then remove it manually. Have a look here for a list of all headers that a currently in the buffer to be sent: http://de3.php.net/manual/en/function.headers-list.php and here to remove it: http://de3.php.net/manual/en/function.header-remove.php . But this is in fact quite a nasty hack. Go and find out if that really works, but I would not be surprised if it actually doesn't.

Hope that helps.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.