4 ms·
What does a CDN has to do with it?
by Franciscouzo 7y ago
What does a CDN has to do with it?
- Spivak 7y agoBecause if your application bundle is a fixed asset — like a JS SPA that fetches it’s data from an API then you can distribute your entire application via an inexpensive CDN. As soon as your application bundle is rendered on your servers dynamically then only part of your site can be delivered via CDN. Basically going all-JS gives you an app model where your sever side code doesn’t even know or care about HTML or the web or whatever. It just pushes JSON or whatever around and it largely client independent. Great model when you need to support iOS, Android, web, desktop.
- deleted 7y ago[deleted]
- penagwin 7y agoUsing a CDN like their talking about likely means your html is static and only served from the CDN. For many SPA's the only actual html is a header, container div, and a call to the app's js. Ignoring the header there might only be say half a dozen lines total.