Current time: 11-18-2019, 05:11 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cookies get RED X
09-08-2011, 07:32 AM
Post: #1
cookies get RED X
Hello All,
Just curious on why so many sites have the cookies column with RED Xs.
Question:

1) Why does it throw the RED X?
2) Should it be fixed and will it help performance?

ex) http://www.webpagetest.org/result/110907...ic_content

Thanks.

Regards,
TRX
Find all posts by this user
Quote this message in a reply
09-08-2011, 08:43 AM
Post: #2
RE: cookies get RED X
The cookie check is one I have considered eliminating because it's kind of a micro-optimization, particularly compared to a lot of the others. The basic rule is that you should serve static content from a "cookieless domain" (i.e. content that doesn't actually use the cookies). The reason is that cookies can add to the size of the request and requests are usually sent upstream on asymmetrical user connections where the upstream is the slower part. A 100 byte cookie across 100 requests is 10KB of outbound data.

Unless the cookies are huge and on a LOT of requests I wouldn't bother with it. If you have already optimized everything else and are possibly looking at adding a CDN that would be a god time to make sure that your cookies are not bleeding over to the CDN domain.

-Pat
Visit this user's website Find all posts by this user
Quote this message in a reply
09-09-2011, 07:52 AM
Post: #3
RE: cookies get RED X
When you say "bleeding" over the CDN domain, what do you mean exactly?

We are currently using CDN (ADN platform to be specific with caching enabled).

Let me know.

Thanks.

Regards,
TRX
Find all posts by this user
Quote this message in a reply
09-09-2011, 08:56 AM
Post: #4
RE: cookies get RED X
Let's say I have http://www.webpagetest.org and cdn.webpagetest.org. If I set a cookie to webpagetest.org (instead of http://www.webpagetest.org) then it will "bleed over" to cdn.webpagetest.org as well. In a situation like that it's usually best to put the CDN on a completely different domain - like http://www.webpagetestcdn.org.

Thanks,

-Pat
Visit this user's website Find all posts by this user
Quote this message in a reply
09-09-2011, 09:29 AM
Post: #5
RE: cookies get RED X
Excuse my ignorance. When you say

"If I set a cookie to webpagetest.org (instead of http://www.webpagetest.org) then it will "bleed over" to cdn.webpagetest.org as well."

... are you saying that "webpagetest.org" is different than "http://www.webpagetest.org?

Let me know.

Thanks.

Regards,
TRX
Find all posts by this user
Quote this message in a reply
09-09-2011, 10:04 AM
Post: #6
RE: cookies get RED X
Yes, webpagetest.org and http://www.webpagetest.org are different. Cookies are automatically applied to any sub-domains of the domain that they are set on so if you run your website on the bare domain then any cookies will also be included in requests for any and all sub-domains.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-12-2011, 11:11 PM
Post: #7
RE: cookies get RED X
Most don't know, but http://www.example.com is basically a subdomain of the example.com. DNS goes from right to left going from the Top Level Domain (TLD, like .com, .net) to the domain (example) to subdomains (sub.example.com, http://www.example.com), and each level being delimited by a period (.). When setting a cookie in your site software, you can choose to set the cookie to .example.com, which sets the cookie for the domain example.com and all subdomains like http://www.example.com. If you set your CDN up with cnames to be a subdomain (cdn1.example.com), then the browser will send the cookie for the cdn as well. Normally this is done so that the cookie can be accessed by both www and non-www versions of the site.
Find all posts by this user
Quote this message in a reply
09-16-2011, 09:19 AM
Post: #8
RE: cookies get RED X
The CDN cnames match our DNS cnames. So I don't think cookies bleeding would be an issue. Would you agree?

ex)

http://www.qad.com

Let me know.

Thanks.

Regards,
TRX
Find all posts by this user
Quote this message in a reply
09-17-2011, 12:58 AM
Post: #9
RE: cookies get RED X
I'm not sure I understand. What do you mean the CDN cnames match your DNS CNames? When I look at http://www.qad.com it looks like the static content is served from http://www.qad.com as well (in which case the cookies WILL be sent with the static content). If you are using a whole-site accelerator product from the CDN where everything is on the same domain then cookies are being sent for the static content too.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-17-2011, 01:35 AM
Post: #10
RE: cookies get RED X
There are more to cookies than I thought. Are using the CDN platform called ADN (Application Delivery Netowork) but also utilizing the caching part of it as well.

Questions:
1) From what you see, do we have a cookie bleeding problem?
2) Should we ignore the cookie errors as they are minor?
3) You have an example of sites/explanation (cookie bleeding vs. NOT bleeding) to better understand the concept?

Let me know.

Thanks.

Regards,
TRX
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)