This is probably a simple question, but I can not find a direct answer anywhere.
My site is hosted on Amazon EC2.
I want to use Amazon Cloudfront to speed up the loading of images, Javascript and CSS on my site.
On my site, I used relative URLs to point to the images, Javascript, and CSS that are on my EC2 server.
So now, to take advantage of Cloudfront, do I need to change all my relative URLs to absolute URLs that point to Cloudfront, or will this be handled automatically by Amazon / EC2 / Cloudfront? Or maybe the best way to ask the question is: can I leave all my URLs as relative URLs and still take full advantage of Cloudfront?
source share