Cloudflare or CloudFront?
If it is CloudFront, mod_pagespeed has an option to specify optional domain name/s that can serve the static content. Here’s the official documentation… https://developers.google.com/speed/docs/mod_pagespeed/domains
Untested with W3 Total Cache plugin, though.
If you’re using mod_pagespeed or mod_cloudflare or cloudflare without the apache module then you probably should minify with W3TC (in fact W3TC disables minify when cloudflare is enabled). Anyway, if I understand your question correctly, you probably shouldn’t do any image related tweaks with W3TC in this case.
Hi guys, sorry for the confusion. I meant hosting images and script ON Amazon Cloudfront but through W3 Total Cache’s configuration while using mod_pagespeed.
I haven’t used mod_pagespeed in a few months. You should do some testing as I doubt there would be any issues if using a custom origin with cloudfront.