Question

I changed all my static content references to use the static. subdomain instead of www. but YSlow still says I am not using cookie-free domains for my static content. What else do I need to do?

Example: http://www.justineyandlephotography.com

Was it helpful?

Solution

What else do I need to do?

To be completely cookie-free, you should use a different domain, not subdomain because cookies can be shared between subdomains. For example take a look at how Stack Overflow does it:

  • main domain: stackoverflow.com
  • cookie free domain for static resources: sstatic.net

So in your case:

  • main domain: www.justineyandlephotography.com
  • cookie free domain for static resources: anything that doesn't end up with justineyandlephotography.com

It basically means that you need to purchase an additional domain if you don't already have one.

OTHER TIPS

You don't need an additional domain, you can use sub domain. And yslow will not detect it, if you are using cloudflare or any other CDN which sends a cookie with every request.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top