CDN not working with jQuery when using Combinator

Nov 8, 2015 at 11:15 PM
In the general settings there is the checkbox for "Use CDN". With that checked and then excluding jQuery from being included in the combinator settings, jQuery is still being loaded from my site and not from the CDN. It appears in debugging that the CDN Url is being lost during the combination service.

Anyone else encountered this issue?
Nov 17, 2015 at 5:47 PM
Hmm. I haven't used this scenario so don't have relevant experience but I can see how this can happen: when a resource is excluded Combinator saves the original URL and then that will appear in the site source. It seems that in this case the original URL is the non-CDN one.

It comes down to what is returned by CombinatorResource.AbsoluteUrl, which in turn depends on ResourceDefinitionExtensions.GetFullPath(), which uses resource.Url while it should resource.UrlCdn, only when CDN usage is enabled.

Could you take a shot at fixing this somehow?