I'm currently building a CDN integration with Aws S3 on a fairly big Drupal installation.
Nothing around seamed to work as per our needs so I decided to coding my own solution. After some substatial effort I've been able to put online the handling for the images.
Now comes the fun part.
I got to the point of using a CDN from my client, but now I'm facing an issue on recalling CSS that are out of site domain with FF.
1 thing I want to share with other freelancers or developer is: "watch out for the libraries included in PHP S3 package, because they put the wrong encoding to the uploaded file". This is absolutely a problem, because the CSS does not get put on S3 with text/css encoding, but as octetstream.
Now I ironed out the issue, but I've been lucky !