We want to use a CDN with our AEM project to serve up the assets (images, scripts, css), so I've configured the aem-commons rewriter component to reference the assets from a static domain. I can see the rewriter in action, and the images are now being pulled from the static domain, but the images appear to be broken links. Now that I'm looking at this more closely, I can see in my browser inspector that AEM has renamed the images different from the source file, and they have been changed to a number string. eg. What I would have expected to see is:
"<img src="/content/test/_jcr_content/par/image.img.png/banner-1.png>"
but now I see
"<img src="/content/test/_jcr_content/par/image.img.png/1462897411261.png>".
Obviously, if I upload my images to the CDN with their original names then the images will look broken on the site because the names are all wrong.
What is the best approach here? Is there a way to download the DAM which will give me all of the assets with their AEM names, which I can then upload to the CDN? Or is there a way to configure AEM to not rename the assets so they keep their original names (which incidentally are also their filenames in the DAM)?
Or is there another way to do this altogether that I haven't considered?
Thanks,
Matt