• Himanshu

    (@himanshupratap)


    Hello,

    I am tired of solving this cookie-free domain. I have tried all steps after reading here, but unable to solve this issue, Gtmetrix always gives me score 0 in use cookie-free domains. This always shows There are 38 components that are not cookie-free my website URL is

    If possible please check and let my website run cookie-free.

    Thank you!

    • This topic was modified 4 years, 8 months ago by James Huff. Reason: redundant link removed

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am tired of solving this cookie-free domain. I have tried all steps after reading here, but unable to solve this issue, Gtmetrix always gives me score 0 in use cookie-free domains.

    Maybe if you could take your time and tell us exactly what steps you’ve taken, we could let you know if that is sufficient or if there is anything else you could do.

    The only way (that I know of anyway) to solve this “cookie-free domain” issue is to serve your static assets (stylesheets, Javascript files, media files, etc) from a different domain or sub-domain (eg static.hastrix.com). This is why Yahoo.com serves static assets from yimg.com and YouTube uses ytimg.com

    You say “I have tried all steps”. What exactly have you done? Have you configured your site to serve your static files from a different subdomain already?

    Here is a good tutorial on this (scroll to the WordPress section):

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

    Thread Starter Himanshu

    (@himanshupratap)

    Hello George,

    Thank you for your response. Yes, first I have installed CDN plugins to solve this issue and then I have checked the same blog which you have shared above. I have created subdomain static.hastrix.com and saved the root file here public_html/wp-content then added this in wp-config.php file
    define(“WP_CONTENT_URL”, “https://static.hastrix.com”);
    define(“COOKIE_DOMAIN”, “www.hastrix.com”);

    After that, I have run this command in SQL

    UPDATE wp_posts SET post_content = REPLACE(post_content,’www.hastrix.com/wp-content/’,’static.hastrix.com/’)

    This also showed that implemented in 70 queries, but still the cookie-free domain issue is not resolved.

    Thread Starter Himanshu

    (@himanshupratap)

    Hello George,

    I have shared the details above, will you please help me use the cookie-free domain.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use cookie-free domains’ is closed to new replies.