|
|
|
|
|
by matthberg
3199 days ago
|
|
When a CDN goes down, that is the time to use local backups. The best policy I've seen is using 3rd party CDNs for scripts like jQuery, ie. common, unchanging resources, yet with subresource integrity checks [0] to make sure it's actually what you are asking for (in case the site somehow gets compromised or returns an error). On top of that to cover for failure, you have a fallback locally hosted copy which is loaded only if the CDN version fails. [0] https://developer.mozilla.org/en-US/docs/Web/Security/Subres... |
|
Or would you do something in the browser to fetch the local one in case of failure?