RsourceCache: Moved url generate from replace callback to rewriteCssUrls to improve performance