CDN and fallback

Hi!

I read this wiki article : http://www.yiiframework.com/wiki/259/serve-jquery-and-jquery-ui-from-google-s-cdn/ wich is really good.

But I was wondering : is there a way to configure a local CDN, just in case?

Thanks for your answers.

Cheers!

I’m wondering what you hope to gain by that? I could imagine a setup that involves your own DNS round-robin. But if that fails, you’ll be completely screwed ::)

Hi,

Sorry for hijacking this thread but the title is very apt!

I was wondering if it is possible to use a Google CDN and a local fallback for jQuery?

I am using this:




<?php 

Yii::app()->clientScript->registerCoreScript('jquery');

// TODO: <script>window.jQuery || document.write('<script src="js/vendor/jquery.min.js"><\/script>');</script>

Yii::app()->clientScript->registerCoreScript('plugins');

Yii::app()->clientScript->registerCoreScript('main');

?>



What i would like is to use the local fallback right after jQuery core script.

Any one has a good solution?

Cheers,

11th