TL; DR;
Check out my solution, which provides a StyleBundle extension method to solve the problem.
The Bundle Style Return
AND
Yes, there is a bug in the Microsoft ASP.NET Framework Optimization Framework documented here .
The solution is to change CdnFallbackExpression as a javascript function that checks the stylesheet and loads the backup, while ignoring the script from the Optimization platform.
There are several difficult parts, especially checking the loading of a stylesheet when it comes from a different domain, like most CDN sources.
I have a solution on GitHub that you can use until the problem is fixed within the framework; However, I will still follow the tricky part of determining when the stylesheet is loaded.
source share