WebPagetest Forums
Serving static content from a cookieless domain - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: Serving static content from a cookieless domain (/showthread.php?tid=128)

Pages: 1 2


RE: Serving static content from a cookieless domain - BrakyEyes - 09-07-2011 07:02 PM

Thanks very much for your valuable input. We are serving our static content from sub domains and having cookies set up at the domain level . We do need cookies at domain level and can't get rid of these.


RE: Serving static content from a cookieless domain - hariskar - 05-08-2012 12:08 AM

I made a cookieless subdomain, the server is lighttpd, so I put a .user.ini with session.use_cookies = 0 inside, put all my images in there, but I had no gain in pae load. Also the static content of subdomain did not load simultanuasly with main domain content, but after it like it was when all content was in main domain. In other words, nothing has changed. But I see the static content I defined (images) being served from subdomain.
Did I do anything wrong?
Thank you!


RE: Serving static content from a cookieless domain - pmeenan - 05-09-2012 12:51 AM

Do you have a link to some test results? Using a separate subdomain will not make the browser increase parallelism if it is being blocked for other reasons (only if it has maxed out it's 6 connections on the main domain).

Just removing the cookies themselves is mostly a rounding error for sites unless they have enormous cookies and a huge number of requests so I wouldn't be surprised to see no impact from that.


RE: Serving static content from a cookieless domain - hariskar - 05-09-2012 02:05 AM

Thank you, my page is http://www.mikroviologos.gr.
Here are some test results:
http://www.webpagetest.org/result/120508_C3_4994W
http://tools.pingdom.com/fpt/#!/qe60lc8AL/http://www.mikroviologos.gr
http://gtmetrix.com/reports/www.mikroviologos.gr/CJqw7of7


RE: Serving static content from a cookieless domain - pmeenan - 05-10-2012 12:13 AM

Yeah, you have few enough resources that the DNS lookup time for the separate domain is using up any benefits you might see from sharding (and you have so few resources that sharding won't help anyway).

Right now your 6 connections are tied up downloading the css and javascript. If you can merge any of the css files together that will free up a connection to download some of the image resources. Moving the javascript to the end of the page will also help if there are no inline dependencies (will let the browser focus on downloading the visible elements first).