Is there CDN Support for bundling in asp.net MVC4 ?
For example I don't want to host my own version of jquery locally and i would like to use Google CDN.
Is there CDN Support for bundling in asp.net MVC4 ?
For example I don't want to host my own version of jquery locally and i would like to use Google CDN.
No, you will have to build your own CDN. You could have a dedicated domain that will host all your bundled scripts served throughout an ASP.NET MVC 4 application. This way all your applications could reference the static resources from this CDN. But don't expect to be able to upload your custom scripts on Google CDN any time soon.
阅读这篇文章,其中展示了如何设置捆绑包的 CDN 路径以及设置后备表达式以防 CDN 出现故障 http://codebetter.com/howarddierking/2012/10/20/new-web-optimization-pre -release-package-on-nuget/