Support » Fixing WordPress » Problem setting up a cookieless or cookie-fee subdomain

  • Hi,

    In order to improve page load time performance I have set up for my site http://www.finanztreff.org a subdomain thru cPanel. The subdomain is called static.finanztreff.org. I managed to move my images over to it, all good so far.

    Then I modified the wp-config.php file accordingly by adding the following line:
    define("COOKIE_DOMAIN", "www.finanztreff.org");

    However when I have been testing my optimisation efforts on e.g. tools.pingdom.com or gtmetrix.com the test results show that static.finanztreff.org is still dropping a cookie. In other words, the tests recommend that the images on static.finanztreff.org better “should be placed on a cookie-free domain”, which means that my subdomain indeed is not cookieless.

    What am I missing here? Any help is highly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bauhausweb

    (@bauhausweb)

    UPDATE: I figured out what the problem was: I am using Cloudflare, and they serve a mandatory cookie for security reasons on all resources that go thru their network. So in my case, either I have to accept the current situation (cookie on static subdomain, acceleration with Cloudflare) or remove my subdomain from the Cloudflare network (then cookieless subdomain, but no Cloudflare acceleration)…

    Cheers

    @bau

    I have the problem when I add the “define(‘COOKIE_DOMAIN’, ‘static.example.com’);”
    My site error with “The constant “COOKIE_DOMAIN” is defined (probably in wp-config.php). Please remove or comment out that define() line.”
    Do you know why?

    I had disable the “static subdomain” Cloudflare!

    I cannot figure out how to make a cookieless subdomain?

    Can you help?

    Damien

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem setting up a cookieless or cookie-fee subdomain’ is closed to new replies.