I mean I want a subdomain in which I will not have anything setup at all, I only use it as a pointer to the place from where I serve my static files.
For google site speed now is a factor to work on with regards to seo results. Seeing modx is great for seo reasons, and seeing I have lots of number 1 spots in google, but I want to stay ahead and therefore inquire about this.
Google advises to serve images and css files from cookieless domains. Ofcourse I can set up a separate domain for this, but I would rather do it on a subdomain, if possible.
I work with Amazon s3 and cloudfront to serve the files, and point a subdomain with cname in my dns to the amazons3 or cloudfront bucket. Cookies that are set for domain.com will also show up for www.domain.com and for any other subdomain for that matter.
It would therefore be good to be able to contain the cookiesetting to the www version of the domain. Which php allows to do by setting the setcookie varible to www.domain.com (
http://php.net/manual/en/function.setcookie.php)
Now all I want is to be able to change this in modx so it works as I want it.
I just added this to config.inc.php
$cookiedomain= ’www.domain.com’;
and further down change a line to: setcookie(session_name(), session_id(), $cookieExpiration, $cookiedomain);
no luck yet though
Thanks
Oliver