I use it at Drupal 7 for same name subdomain (to increase number of parallel connections and for cookieless subdomain).
Well, for some files of the same type it works, for some it does not, and lets them at www. instead of cdn.
When I aggregate css and js files through D7 core performance settings, then almost no files are under cdn. subdomain.