title: Serve a html/jss/css application from CDN or application server (RoR, node.js etc)?
body: <p>I'm doing a rich internet application (html/js/css) which has to communicate with a backend application server (RoR or node.js) through XHR/Websocket.</p>
  
  <p>I wonder what the best way is to serve the RIA files to the web browsers: CDN or RoR/node.js as static file servers?</p>
  
  <p>Does't the latter make it impossible for the browser to communicate with the backend server due to the same origin policy?</p>
  
  <p>Thanks</p>