     {
         return url != null ? sha1(url) : null;
     }
+
+    private function isRelativeURL(url:String):Boolean
+    {
+        return url && url.indexOf("://") == -1;
+    }
 }
 }


            if (head != null)
            {
                var resultOrErrorCallback:Function = function(value:*=undefined):void
                {
                    if (value == undefined || value is Error)


            if (head != null)
            {
                if (head.link != null)
                {
                    if (isRelativeURL(head.link))
                    {
                        try
                        {
                            head.link = _directory.resolvePath(head.link).url;
                        }
                        catch (error:Error) { /* ignore error */ }
                    }
                }
                else
                {
                    try
                    {
                        head.link = _directory.resolvePath(key).url;
                    }
                    catch (error:Error) { /* ignore error */ }
                }

                return head;
