Scripts not merged when using a different WP_CONTENT_URL
-
I noticed that when this option is setup (the main website being
https://www.domain.com):define('WP_CONTENT_URL', 'https://s.domain.com' );All the scripts loaded like
https://s.domain.com/themes/domain/assets/javascript/functions.jswon’t get merged, and will keep the same with no minification. Once I unset theWP_CONTENT_URLconstant, they are included with no problem.The
s.domain.comis not external, it’s just an alias of the main website, but with a virtual host pointing to/wp-content/for cookie-free domain purposes. Is there a fix or something I can do to use this plugin and keep the cookie-free domains?
The topic ‘Scripts not merged when using a different WP_CONTENT_URL’ is closed to new replies.