'Use cookie-free domains - subdomain solution not working

I'm trying to optimize an html webpage, and one of the suggestions from yslow is:

Use cookie-free domains There are 11 components that are not cookie-free

So I followed one of the standard solutions I've seen and created a subdomain static.mysite.com and put the images there.

But I'm still getting the exact same problem -- a cookie is still being delivered with each image, and same yslow message.

So how do I get this subdomain to be cookie free?



Solution 1:[1]

If you are using subdomain for cookie-free delivery then your main page has to use www prefix.

Solution 2:[2]

I had the same problem. The subdomain simply didn't work, so I used a different domain name and it solved the problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rimski
Solution 2 KungFuJosh