Drupal 7 CDN whitelist issue My Drupal 7 site is working nice and most of my static files are served via CDN. I use CDN module with Origin Pull however CDN didn't pull the files from my misc folder where there are small png icons (came with vanilla drupal installation). 

In CSS, I have used url('sites/all/themes/mytheme/img/bg.png') for background and I can see the background, and it is served via CDN. In the same CSS I have url('misc/configure.png') but this one is not working. I see 404 for configure.png while checking from Developer Tool.

So, I added the path in CDN module's whitelist like misc/*.png and did all those flushing and cron for CDN to recognize the file. Still CDN didn't pull the file. I have set the file permissions to 775 too, but nothing changed. Any help would be appreciated.

Edit: the 404 is only for the picture, I checked it via chrome's Developer tool. It shows the path https://myCDN/misc/configure.png (which is missing), whereas for background it shows https://myCDN/mysite/sites/all/themes/mytheme/img/bg.png. 

However, the notable difference is in configure.png the name of my site is not present in CDN path. If I change the path via Chrome Developer Tool like https://myCDN/mysite/misc/configure.png It works, the image shows. It also works if I use absolute url in CSS like url('https://mysite/misc/configure.png')
I was doing the wrong practices with Drupal Theme, in CSS whenever I have to use the url() to declare the path, I was using url('sites/all/themes/mytheme/images/bg.png') which is considered as Bad Practice, so I changed that to url(../images/bg.png) and same for Images inside misc folder as url('../../../../misc/configure.png') from CSS and everything is working as expected.

To tell long story in short, don't use absolute url from the root in CSS but use relative paths.