Using domains without cookies - subdomain solution does not work

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

Use of domains without cookies. There are 11 components that are not cookies for free

So, I followed one of the standard solutions that I saw and created a subdomain of static.mysite.com and posted the images there.

But I'm still getting exactly the same problem - the cookie is still being delivered with every image and the same yslow message.

So how can I get this cookie subdomain?

+4
source share
1 answer

cookie , . , . , cookie. .

www.example.org, static.example.org. , cookie example.org , www.example.org, static.example.org cookie. , cookie. Yahoo! yimg.com, YouTube ytimg.com, Amazon images-amazon.com ..

cookie , - , . , , example.org www.example.org , . www , cookie *.example.org, www cookie .

- http://developer.yahoo.com/performance/rules.html

cookie (, yourwebsite.com), (, static.yourwebsite.com) cookie, . , , cookie. , cookie www, www.yourwebsite.com, (, static.yourwebsite.com) , cookie.

Wordpress :

define("WP_CONTENT_URL", "http://static.yourwebsite.com"); 
define("COOKIE_DOMAIN", "www.yourwebsite.com");

- https://www.keycdn.com/support/how-to-use-cookie-free-domains/

2

wp-content !

-3

Source: https://habr.com/ru/post/1524333/


All Articles