Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] browser downloading minified JS CDN files

  • Resolved Nic Windley


    I have W3TC setup with amazon cloudfront using multiple subdomains / CNAME’s for different minified file sets i.e.. – CSS files – JS <header> files – JS after <body> files – JS before </body> files – all other files

    These are all setup in my DNS zone CNAME records to point to my amazons CDN bucket:

    They have also been added to the distribution settings in cloudfront.

    I find that browsers such as FireFox are trying to download the minified JS files, which are being sent via their relevant subdomains instead of executing them.

    For example, when I load the site in Firefox I get the following downloads popup.

    If I disable browser HTTP compression for Cascading Style Sheets & JavaScript files then I no longer get the problem, but files are no longer served from their respective sub domains or minified.

    Don’t think I have this setup quite right. Can somebody point me in the right direction.



Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frederick Townes


    Can you submit a bug submission from the support tab of the plugin?


    Thanks for the reply and think I’ve found a fix / balance.

    The browser issue was actually a download plugin which was trying to grab the files as it only happens on the machine running this plugin.

    The JS minification issues I’ve resolved for now by disabling JS minifcation altogether as it does not seem to play nice. I just can’t seem to find a combination of files that work together reliably.

    I’m sticking with the CSS minify as the file set I’ve found seems to work OK.

    With this setup I get the minified CSS files serving from the correct subdomain and everything else from the standard cdn subdomain and the site renders correctly and all plugins work.

    Do you still want me to send a bug report ?

    Plugin Author Frederick Townes


    Yes, that’s still an odd issue.

    Plugin Author Frederick Townes


    No thanks, I will add other JS minifications later in the future to try to overcome some of the bad code that’s out there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: W3 Total Cache] browser downloading minified JS CDN files’ is closed to new replies.