Closed (won't fix)
Project:
Parallel CSS - AdvAgg Plugin
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 Jun 2011 at 00:26 UTC
Updated:
3 Apr 2012 at 21:57 UTC
Great Module! @chriscalip
Does this module allow me to map a full URI (path) rather than a Domain?
I think you know my 'logic' in this request... just refer to http://drupal.org/node/1164544#comment-4509598
Congratulations on this new module!
I have not spent much time reading the source, but it appears that you increment the next CDN asset(eg: 1-4). That is a idea I once used before I came to Drupal CMS (back in the good ol' days or HTML+PHP - with no CMS learning curves and callbacks) :)
Basically, the word 'parallel' describes it well!
Comments
Comment #1
chriscalip commentedYup the current branch handles this implementation:
http://img1.drupal.org
http://img2.drupal.org
http://s1.amazonaws.com/drupal_cdn
http://s1.amazonaws.com/drupal1_cdn
http://s1.amazonaws.com/drupal2_cdn
http://s1.amazonaws.com/drupal3_cdn
Comment #2
Peter Bowey commentedRefer #1
*Great*
Many thanks!
Comment #3
chriscalip commentedI know what your thinking *wink*
http://s1.amazonaws.com/drupal-cdn
http://s1.amazonaws.com/drupal1-cdn
http://s1.amazonaws.com/drupal2-cdn
http://s1.amazonaws.com/drupal3-cdn
http://drupal-cdn.s1.amazonaws.com
http://drupal1-cdn.s1.amazonaws.com
http://drupal2-cdn.s1.amazonaws.com
http://drupal3-cdn.s1.amazonaws.com
Comment #4
Peter Bowey commented@chriscalip
Again, many thanks for engineering this module!
It 'grows' well... within... the asset collective :)
Comment #5
chriscalip commentedMajor bug found .. this feature is not supported until this bug is fixed.
lots of css files have relative links case in point system.css
background: url("../../misc/tree-bottom.png");
The module only does a replace so this would be fine if it's only domain:
http://img1.drupal.org/../../misc/tree-bottom.png
css inteprets as :
http://img1.drupal.org/misc/tree-bottom.png
It would not be fine on a full uri path
background: url("../../misc/tree-bottom.png");
http://s1.amazonaws.com/drupal3-cdn
**module process**
http://s1.amazonaws.com/drupal3-cdn/../../misc/tree-bottom.png
css interprets as
http://s1.amazonaws.com/misc/tree-bottom.png
Comment #6
chriscalip commentedComment #7
chriscalip commentedComment #8
chriscalip commentedComment #9
chriscalip commentedComment #10
Peter Bowey commentedRefer #5
Yep, I had the same problem with just advagg + cdn :)
Then you get 404's - all because of [../../] css factors!
Comment #11
chriscalip commentedI digged deeper into this and it turns out advagg_build_css_bundle already implements this feature. That was just me worrying about troubles that are not there.. me pretty much doing a run through of the process in my mind versus just actually looking with actual data. I doubled check on the contents of the aggregated data and there is no where to be found of instances of "../.. " case in point system.css ../../misc/tree-bottom.png advagg correct parses it as /misc/tree-bottom.png
I'll consider this as fixed until otherwise proven. Now peter bowey : i believe .. your glitch might be caused by something else.
Comment #12
chriscalip commentedlooking into that something else ... i swear i saw this glitch too.!
Comment #13
chriscalip commentedI cant seem to find that specific scenario for that something else. considered fix till further proof given.
Comment #14
Peter Bowey commentedRefer #12
Thanks @chriscalip
I see the 'collective' relative asset 'trim' problem only when I run the advagg 'rebuild' function.
It re-writes references to Drupal's
/modules/system/system.cssfrom:background: #fff url(../../misc/progress.gif);to
background: #fff url(http://s1.amazonaws.com/misc/progress.gif);*but* it should be:
background: #fff url(http://s1.amazonaws.com/drupal3-cdn/misc/progress.gif);Hence the 404, but only for one url referenced by the advagg 'batch' API.
I suspect this is NOT a real serious problem! More the nature of given implied references to the Drupal API 'batch' function that advagg uses (for rebuilding the asset collective).
I do note from reading 'carefully' the Drupal Module CDN notes, that a lot of what you would like to achieve is present (in some form) in various 'hidden' attributes of the CDN 'extended use notes'.
Many thanks.
Comment #15
chriscalip commentedSee http://drupal.org/node/1182670#comment-4589940 -- problem fixed it seems.
Comment #16
chriscalip commentedI am still not sure if the cdn portion of this module handles :
I confirm that the standalone parallel_css only partially handles this; the error is the instances of "../.."
Comment #17
chriscalip commentedModule Parallel_CSS got deprecated , CDN module is now providing this module's feature.