I see many sites where directories such as a images , js ,var/cash/ are not visible in the browser source. All you can see is the index. Sites where you can’t see these directories all use CDN. How do they achieve this ? For example, in https://www.houseofcb.com/ all the media had been moved in http://d166chel5lrjm5.cloudfront.net/.
The media was moved to another place by simply linking images there. In the website’s HTML, images are referenced with the full URL of the image like so:
In general, there really isn’t a functional reason to do this, and it actually makes your website a bit slower as it’s an extra DNS round-trip, which could slow down page loads by 50+ milliseconds. In either case, Cloudflare doesn’t offer this functionality right now.
Is it possible to replace all the url of http://example.com/images/*.* to http://mycdn.com/images/*.* ? So that user loads the images from my CDN server?