Support » Plugin: W3 Total Cache » Serving static files from a cookieless domain (w/ MaxCDN)

  • When testing my site using the Pingdom tool it tells me that some of my static files could be served from a cookieless domain to increase performance.

    I’m using the latest version of W3 Total Cache in conjunction with MaxCDN. The CDN is working perfectly on my site ( and I have added this code to my wp-config.php file…

    define('COOKIE_DOMAIN', '');

    That doesn’t seem to take care of the issue though as it still says that static files on my CDN are still receiving cookies. Any idea how to fix this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having the same thing and I don’t understand how to remove it.

    I also adjusted the to in the Google Analytics-code, cause that also seemed to set cookies.

    I have created a CNAME record pointing to the custom domain provided by MaxCDN.

    Still getting the error.

    I fixed this and if I remember correctly I did it by going to my MaxCDN control panel and specifying a time period 7 days or more for cookies. I can’t remember if that’s exactly what I did but I know I fixed it… Ughh, I’ll try and remember.

    Has there been any more info on this? I have the issue as well, and I’m trying to solve it as YSlow gives me an F on it.

    Angelica Costa


    Yeah, it worked for me. Go to maxcdn, settings of the zone and set “Override Cache-Control Header” to 7 days.
    ALSO: go to the cdn option in w3 total cache and in the advanced section, check “set cookie domain to (your domain)”.

    Yes, same issue, but MaxCDN already Override Cache-Control Header set for 7 days. Also W3Total setup www domain as the cookies domain on wp-config.php file. But still Pindom tools show me my cdn domains have cookies.

    Is it Google Analytics for WordPress plugin issue or any other issue?

    Hey, thanks for this MaxCDN setting 🙂 Have been fighting the ‘cookieless..’ report for a whole. It just worked with the 7 days setting as angelcosta mentioned. The ‘set cookie domain’ was already on.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Serving static files from a cookieless domain (w/ MaxCDN)’ is closed to new replies.