Thanks!
]]>define("WP_CONTENT_URL", "https://static.mydomain.com");define("COOKIE_DOMAIN", "mydomain.com");
UPDATE wp_posts SET post_content = REPLACE(post_content,'mydomain.com/wp-content/','static.mydomain.com/')
What am I missing? Also, how could I revert step nr. 3 if I want to delete the subdomain created and drop this issue?
]]>I tried disabling the WPDM plugin and testing with GTMetrix. The result is that all files are now cookie-free ..
Why? There is a solution?
]]>plugins/site-reviews/plugin/Modules/Session.php:
const SESSION_COOKIE = ‘_glsr_session’;
What happened in the last two updates? Can this be fixed?
I have the plugin deactivated so please ask if you want it on.
Thank you.
]]>1) Create a subdomain such as static.yourwebsite.com which is where you will deliver all your static files from.
Ok easy enough to do.
2) Point your new subdomain to the /wp-content directory of your WordPress installation.
ok, that’s easy to do also
3) Edit your config.php file to reflect the following:
define("WP_CONTENT_URL", "https://static.yourwebsite.com");
define("COOKIE_DOMAIN", "www.yourwebsite.com");
ok, I did that
Now that your cookie domain and static content subdomain are set, you can begin delivering static content without the server setting an unnecessary cookie for static assets.
Ok, this is where I am confused – am I supposed to put another install of wordpess on the static subdomain? what exactly do I do here in this step?
This thing great. thank you so much for making my web-site one more step cookie-free..
]]>server {
fastcgi_hide_header Set-Cookie;
}
I am asking this is because I am getting a F from Yslow (Gtmetrix testing). It says that my website’s many js. css, jpg files are NOT cookie-free.
My server is setup with EasyEngine, Nginx.
My website is wordpress
In order to improve page load time performance I have set up for my site 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!
]]>is “Please make sure that you have used “bloginfo (‘template _directory’)” to load your static content in theme files.”
What does this mean I have researched wordpress to how to do this but I am not finding an exact reference to go by. I appreciate any help.
]]>