I have W3TC setup with amazon cloudfront using multiple subdomains / CNAME's for different minified file sets i.e..
cdn.css.mysite.com - CSS files
cdn.jshead.mysite.com - JS <header> files
cdn.jsab.mysite.com - JS after <body> files
cdn.jsbb.mysite.com - JS before </body> files
cdn.mysite.com - all other files
These are all setup in my DNS zone CNAME records to point to my amazons CDN bucket: myid.cloudfront.net
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.
cdn.jsab.mysite.com/wp-content/w3tc/min/1b036c/default.include-body-nb.3490654809.js.gzip
cdn.jshead.mysite.com/wp-content/w3tc/min/1b036c/default.include-nb.2483601537.js.gzip
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.
Thanks,
Nic