Make sure that the correct Content-Type response header is being set. On our CDN it was defaulting to text/plain rather than text/javascript which was causing the issue.
Content-Type
text/plain
text/javascript