Like Garrett says : W3TC only replaces URLs with a preceding quote.
You can see the regexs in w3-total-cache/lib/W3/Plugin/Cdn.php : $regexps[] = ‘~([“\'(])\s*((‘ ….
Hello,
I have exactly the same bug. Did you find a solution ? Did you have a answer from W3TC ?
I keep searching.