CDN not working on multilingual site I have a site that is multilingual using path prefix, for example I can have:


example.com/en
example.com/es
example.com/fr


If the user goes to example.com, a language selection page appears (using the language selection module).

But I'm trying to enable the CDN module and it's not working because all resources are pointing to example.com/sites/.../somecss.css instead of example.com/en/sites/...

If I disable the CDN module the resources are pointed to the correct path.  How can I fix this?  I think it's bug in the CDN module.

Using Drupal 7 &amp; Amazon CloudFront.  I don't want to change the site to subdomain for the languages (eg, en.example.com).
Found the issue the Language Selection Page module is causing the issue https://drupal.org/node/2283985. You can see the styles exemption in the code. For you I would add in the advagg and cdn paths to the language_selection_page_blacklisted_paths variable. You should find it under "Paths blacklist" on the admin/config/regional/language/configure/selection_page page.

Gotta run will add in the exact paths tomorrow, but it will be something like 


  farfuture/*
  sites/default/files/advagg_css/*
  sites/default/files/advagg_js/*
  httprl_async_function_callback