WebPagetest Forums
Proper cookie usage - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: Proper cookie usage (/showthread.php?tid=334)



Proper cookie usage - BS-Harou - 08-12-2010 07:45 PM

Hi,
i want to ask what do I have to do to have checked "Proper cookie usage". Is there something in htaccess (for images/scripts/styles..) I should add?


RE: Proper cookie usage - pmeenan - 08-12-2010 08:52 PM

I'm not sure I would worry too much about it but if you need that last few milliseconds you need to split your dynamic (needs the cookies) content and static (css, js, images) into separate domains and make sure the "static domain" never has cookies set on it.

It's much easier to pull off if you are also using a CDN and need to split off your static resources anyway.

Since cookies are uploaded with every request (and the upstream bandwidth is usually slower for users) you can save some time by only having cookies sent when you really need them. That said, for most sites there is usually quite a bit of lower-hanging fruit to fix first and the ROI for the cookies may not be worth it.


RE: Proper cookie usage - BS-Harou - 08-12-2010 08:54 PM

but for example site http://www.opera.com doesn't use CDN, has pictures on same domain and still has "Proper cookie usage" on them checked. How?


RE: Proper cookie usage - pmeenan - 08-13-2010 01:17 AM

Because they don't set any cookies at all when you navigate to http://www.opera.com :-)


RE: Proper cookie usage - BS-Harou - 08-13-2010 03:24 AM

oh, that would be it =) thank you very much!