• Hi,

    I’m trying to get images, JS, CSS file to load from a different subdomain i.e. CDN. I created a subdomain cdn.domainname.com and added a CNAME which points to main site i.e. https://www.domainname.com

    So,
    https://www.domainname.com/wp-content/cache/minify/000000/f1d72/default.include-footer.dd287e.js
    AND
    https://cdn.domainname.com/wp-content/cache/minify/000000/f1d72/default.include-footer.dd287e.js
    are actually same.

    All images are loading from cdn.domainname.com and also JS/CSS files that are not minified but minified CSS/JS files are not loading from cdn.domainname.com but from https://www.domainname.com.

    I’ve checked all options in ‘General’ under CDN page and tried to add the following in Custom file list but none worked:

    {wp_content_dir}/cache/*
    /wp-content/cache/minify/000000/f1d72/*
    {wp_content_dir}/cache/minify/000000/f1d72/*
    /wp-content/cache/minify/*
    /wp-content/cache/minify/*/*/*

    I’ve been pulling my hair for last couple of days and couldn’t get anywhere. Please help!

    Regards,
    M

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Self hosted/Mirror CDN not working for minified CSS/JS files’ is closed to new replies.