meteor-preloader icon indicating copy to clipboard operation
meteor-preloader copied to clipboard

CDN, fallback to local.

Open tcastelli opened this issue 9 years ago • 2 comments

Hello again! Due to certain circumstances I've seen how the CDN servers were out, and all my routes depending on that were not loading correctly. Would it be possible to add a fallback place to load them from public folder in that case? (or if anyone has an idea of how to get this working with current functions i'm listening :)

tcastelli avatar Oct 20 '15 13:10 tcastelli

Sounds like a good idea. What should be the trigger to switch to public dir? A timeout?

MiroHibler avatar Oct 20 '15 15:10 MiroHibler

Yes, i think the current timeout system for sync files would work perfectly to trigger the fallback location (well, maybe the timeout could be set for each file, not sure how much work would that involve).

Update: Well, also getting an error from xmlhttprequest would trigger the event

tcastelli avatar Oct 20 '15 15:10 tcastelli