The latest 'patch' via http://drupal.org/files/issues/advagg-1185756-1.patch
has (re-)created the original issue of 'missing schema' for CDN assets!

So I am back to my old method / patch!! See http://drupal.org/node/1172012

CommentFileSizeAuthor
#2 advagg-1189002-2.patch953 bytesmikeytown2

Comments

Peter Bowey’s picture

The Asynchronous debug info:

* 1) advagg *

http://www.peterbowey.com.au/sites/peterbowey.com.au/files/advagg_css/css_missing2784707221308127762_0.css:

stdClass Object (
    [request] => GET /sites/peterbowey.com.au/files/advagg_css/css_missing2784707221308127762_0.css HTTP/1.0
Host: www.peterbowey.com.au
User-Agent: Drupal (+http://drupal.org/)

    [data] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><p><a href="/">Home</a></p><!-- advagg_missing_fast404 --></body></html>
    [protocol] => HTTP/1.1
    [status_message] => Not Found
    [headers] => Array (
            [Server] => nginx
            [Date] => Wed, 15 Jun 2011 08:49:22 GMT
            [Content-Type] => text/html; charset=utf-8
            [Connection] => close
            [Vary] => Accept-Encoding
            [Set-Cookie] => route=a09179338e3b3d76612c2a9a3f0c1e5b
            [X-Accel-Expires] => 0
            [Last-Modified] => Wed, 15 Jun 2011 08:49:22 +0000
            [Cache-Control] => no-cache, must-revalidate, post-check=0, pre-check=0
            [ETag] => "1308127762"
            [X-AdvAgg] => Failed Validation. Wrong Pattern.
        )
    [error] => Not Found
    [code] => 404
    [timer] => Array (
            [count] => 1
            [time] => 55.02
        )
)

* 2) Current 'broken' advagg CDN debug info *

/sites/peterbowey.com.au/files/advagg_css/css_missing2784707221308127762_0.css:

stdClass Object (
    [error] => missing schema
    [code] => -1002
    [timer] => Array (
            [count] => 1
            [time] => 0.03
        )
)

* For the above 'broken' CDN URI state, CDN Blacklist = ''


* 3) And how the above (cdn debug info) should /did look *

http://small.gdlcdn.com/802C5F/cdn1/sites/peterbowey.com.au/files/advagg_css/css_missing16439535171306645578_0.css:

stdClass Object (
    [request] => GET /index.php?q=sites/peterbowey.com.au/files/advagg_css/css_missing16439535171306645578_0.css HTTP/1.0
Host: www.peterbowey.com.au
User-Agent: Drupal (+http://drupal.org/)

    [data] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><p><a href="/">Home</a></p><!-- advagg_missing_fast404 --></body></html>
    [protocol] => HTTP/1.1
    [status_message] => Not Found
    [headers] => Array (
            [Server] => nginx
            [Date] => Sun, 29 May 2011 05:06:17 GMT
            [Content-Type] => text/html; charset=utf-8
            [Connection] => close
            [X-Accel-Expires] => 0
            [X-Drupal-Cache] => MISS
            [Last-Modified] => Sun, 29 May 2011 05:06:18 +0000
            [ETag] => "1306645578"
            [X-AdvAgg] => Failed Validation. Wrong Pattern.
            [Expires] => Sun, 19 Nov 1978 05:00:00 GMT
            [Cache-Control] => must-revalidate
            [Content-Length] => 307
        )
    [error] => Not Found
    [code] => 302
    [redirect_code] => 404
    [redirect_url] => http://www.peterbowey.com.au/index.php?q=sites/peterbowey.com.au/files/a...    [timer] => Array (
            [count] => 1
            [time] => 318.06
        )
)
mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new953 bytes

Thanks for the report! This has been fixed. Bug was introduced in this issue #1185786: allow for URLs to get CDN-ed even if cdn patch is not applied

Key part of the patch

-        file_create_url($path);
+       $path = file_create_url($path);
naeluh’s picture

thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.