3 ms·
This concept is really neat! I do have one question: how would something like this work when your webpages are being cached or when you're behind a CDN? As far
by romeovs 8y ago
This concept is really neat!
I do have one question: how would something like this work when your webpages are being cached or when you're behind a CDN? As far as I can see none of this can work unless all requests hit your web server.
Does anyone know of any solutions that work similarly, but would allow for CDN's and caching? I'm aware that these will probably need JS, but I'm fine with that.
- oltdaniel 8y agoFirst, the Ruby server does not set any cache headers for the response. This means, the browser will not cache this url and the api will always be called. Behind a Proxy Server, this Api does need am exception. A CDN does not affect this kind of server, as a server of this kind should always return something dynamic and not static. Caching or duplicating the content across servers is totally useless. If you want to call the API through JS, the JS can be cached on CDNs, as the request done to the API server will always be the same. For any further questions, you can email me. See fcused.at/about .