Alex Mcauley
www.theukjobsite.co.uk
> --
> You received this message because you are subscribed to the Google Groups
> "page-speed-discuss" group.
> To post to this group, send email to page-spee...@googlegroups.com.
> To unsubscribe from this group, send email to
> page-speed-disc...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/page-speed-discuss?hl=en.
>
>
You can look at which cookies apply to a given resource in Firefox by
opening "Preferences" and choosing the "Privacy" tab. There is an
option to "remove individual cookies" (might be called something else
in other versions of FF) that lets you see which cookies are
associated with each hostname.
Note that a cookie set on foo.com will be applied to all subdomains of foo.com.
So in your case if any cookies are applied to fitzgroup.com.au they
will also be applied to image(s).fitzgroup.com.au.
--
I did this by creating a CDN on my domain that just sent the js / css /
images but no cookies.
This also allowed me to do more parallel downloads and thus render the page
faster.
To do this for yourself follow these steps.
1. Create a DNS entry for cdn.yourhostname.com
2. adjust your pages / css / paths to read from
cdn.yourhostname.com/the/path/to/the/resource....
3. Clear all cookies from yourdomain.com
4. when setting cookies from your domain (or how I got caught out from
google analytics) only set cookies with the domain www.yourdomain.com
5. re-run the page speed tool.
hope this helps
Alex Mcauley
http://www.theukjobsite.co.uk
----- Original Message -----
From: "Seffo" <j...@fitzgroup.com.au>
To: "page-speed-discuss" <page-spee...@googlegroups.com>
Sent: Tuesday, November 30, 2010 3:27 AM
Subject: [page-speed-discuss] Re: Page Speed's "Serve Static Content From a
Cookieless Domain"
Alex,
I don't think "trick" is the right word here. Cookies are defined
to bind to host names, and this is one very good reason.
If one computer has two host names pointing to it, then it has two
different namespaces for cookies. This was a deliberate design
decision. It allows you to only send cookies when you need them, even
if you have one physical machine serving many domains. If cookies
were bound to an IP address instead, Page Speed would have to
recommend that you buy more servers (or at least more network cards).
Sam
Cookies bind to full hostnames and they should be set to
subdomain.thedomain.com rather than .thedomain.com
Your point disagrees then agrees with mine so I can't really see the point
in it to be honest.
The user asked how to get around the cookie problem and I explained how to
do it without buying a CDN and increasing page speed by parallelising
downloads
Regards
Alex
http://www.theukjobsite.co.uk
----- Original Message -----
From: "Sam Kerner" <ske...@google.com>
To: <page-spee...@googlegroups.com>
Sent: Tuesday, November 30, 2010 3:07 PM
Subject: Re: [page-speed-discuss] Re: Page Speed's "Serve Static Content
From a Cookieless Domain"
My point is that Page Speed is doing what browsers do. When you say:
> trick the page speed tool into thinking it's from a different box
a reader might infer from "trick" that you are deceiving page speed
without really solving the problem. Because browsers are tricked in
the exact same way, this is not the case.
> The user asked how to get around the cookie problem and I explained how to
> do it without buying a CDN and increasing page speed by parallelising
> downloads
It is clear from your message that you are an expert who understand
this. I understand what you meant, and I agree with it I replied to
your message because I can see someone who is trying to learn reading
that first sentence and thinking you meant something else.
Sam
I can't really think of a differnet word than trick - but if you can please
let me know.
Kind regards
Alex Mcauley
http://www.theukjobsite.co.uk
If you host charges you for setting that up then they should be shot!.
It doesnt need any other hosting as the docroot for it should be set to the
same as your site.
Alex Mcauley
If you are running google analytics you must then set the analytics to the
www.domain.com rather than it's default (as analytics sets a cookie for
*.domain.com) - then run the test again.
You only need to do that lot once!
I had exactly the same issue and I solved it by doing the above
HTH
Alex Mcauley
www.theukjobsite.co.uk
https is a pain because wildcard certs are so dang expensive.
If you are looking to get your page speed up to help your rankings then you
can optimize all of the non https pages and put a robots.txt in for the
https ones!
With regards to the analytics - if you load them async you can specify the
domain like so...
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XX-XXXX-X']);
_gaq.push(['_setDomainName', 'www.domain.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();