Okay, the answer is pretty obvious. Let me explain by example:
-
W3 Total Cache makes sure that all the primary static contents on a web page (i.e. ones directly referenced in the source of the web page) are loaded via the CDN URL.
-
So, lets say, W3TC serves the blog’s stylesheet from
cdn.example.com/wp-content/themes/MY-THEME/style.css
and the stylesheet contains this piece of code:.expand-down { padding-left: 14px; background: url(/wp-content/themes/v7/img/right_arrow.png) left center no-repeat; } #twitter_bird { background: url(../themes/v7/img/tech-innovators/twitter_bird.png) no-repeat scroll left top transparent; width: 34px; float: left; height: 24px; margin: 9px 0 0 7px; display: block; }
Since the CSS file has relative references to images’ locations. So, the browser simply serves them from the same domain as the domain the one the stylesheet is served from. How did I forget this simple thing?!