2

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.

4

2 回答 2

1

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.

于 2012-07-26T07:30:54.290 回答
0

阅读这篇文章,其中展示了如何设置捆绑包的 CDN 路径以及设置后备表达式以防 CDN 出现故障 http://codebetter.com/howarddierking/2012/10/20/new-web-optimization-pre -release-package-on-nuget/

于 2013-01-23T18:46:02.907 回答