On the status page I am getting "Your current CDN settings are not rewriting the URL for advagg" -- both for CSS and JS.

In the CDN settings at /admin/settings/cdn/other there are the two relevant lines:

*/files/advagg_css/css_*.js
*/files/advagg_js/js_*.js

What else should I set in the CDN settings to resolve the problem? Or is it a bug?

Comments

nowrap’s picture

I've the same messages on the status page.
But all css and js files are mapped globally:
http://css.domain.com|.css
http://js.domain.com|.js

Firebug shows me that all URLs are rewritten.

So the question is, how to solve this?

broncomania’s picture

I get the same issue here. No solution yet?

cedarm’s picture

This may be related to securepages forcing SSL on the status page, and CDN not being used for https. We get the same warning, but CDN URLs are in fact being used.

mikeytown2’s picture

Function used for this test is advagg_build_uri()

Test code in question: http://drupalcode.org/project/advagg.git/blob/de724b5a4c1491205d607f4a31...

What this is saying is when file_create_url() is ran on an advagg file the host isn't set or the host is equal to the current host. That usually means CDN re-writing has failed.

mr.j’s picture

I am seeing this exact error. It has only started happening recently, with us not making any changes that I am aware of to a CDN + Advagg setup that has been working properly for a couple of years now.

The strange thing is that anonymous users are served files from the CDN correctly but logged in users are not. I cannot work it out.

asb’s picture

Issue summary: View changes

Same error message on status page.

Most likely you need to adjust your CDN exceptions to allow CSS files from advagg.

I have no idea why my "current CDN settings are not rewriting the URL for advagg CSS files" or how to fix this. Which "exceptions" are required? Is there any documentation about this?

The 'CDN' module is installed as instructed on the 'Parallel' project page. CDN mapping

http://css.example.org|.css
http://js.example.org|.js
http://cdn.example.org|.jpg .jpeg .gif .png .ico
mikeytown2’s picture

Status: Active » Closed (won't fix)

Marking as won't fix as in I will not create a patch for this; if someone else creates a patch that fixes this issue I will commit it.