Reputation: 2613
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.
Upvotes: 2
Views: 496
Reputation: 4144
Read this post which shows how you can set the CDN path of your bundle as well set a fallback expression in case the CDN goes down http://codebetter.com/howarddierking/2012/10/20/new-web-optimization-pre-release-package-on-nuget/
Upvotes: 0
Reputation: 1038730
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.
Upvotes: 1